davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:01 am

back to topic:
backup still don't work, even when using capital letters... :(
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:07 am

davenull wrote:pi@raspberrypi:/media/pi/USB120DRV $ sudo tar --exclude=/media/* --exclude=/proc --exclude=/dev --exclude=/tmp --exclude=/run cvzf /media/pi/USB120DRV/pibackup.tar.gz /
tar: Eine der Optionen „-Acdtrux“, „--delete“ oder „--test-label“ ist notwendig.
„tar --help“ oder „tar --usage“ gibt weitere Informationen.
pi@raspberrypi:/media/pi/USB120DRV $
Don't use tar, it's broken, use rsync:

Code: Select all

mkdir -p /media/pi/USB120DRV/pibackup
cd /media/pi/USB120DRV/pibackup/
sudo rsync -avz --delete --exclude /sys --exclude /tmp --exclude /proc --exclude /run  --exclude /media/* / .
And if you want to create a single backup archive file (if tar is working):

Code: Select all

sudo tar  cvzf ../pibackup.tar.gz .

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:08 am

again hangs up

pi@raspberrypi:/media/pi/USB120DRV $ sudo tar --exclude=/media/* --exclude=/proc --exclude=/dev --exclude=/tmp --exclude=/run cvzf /media/pi/USB120DRV/pibackup.tar.gz /
tar: Eine der Optionen „-Acdtrux“, „--delete“ oder „--test-label“ ist notwendig.
„tar --help“ oder „tar --usage“ gibt weitere Informationen.
pi@raspberrypi:/media/pi/USB120DRV $ mkdir -p /media/pi/USB120DRV/pibackup
pi@raspberrypi:/media/pi/USB120DRV $ cd /media/pi/USB120DRV/pibackup/
pi@raspberrypi:/media/pi/USB120DRV/pibackup $ sudo rsync -avz --delete --exclude /sys --exclude /tmp --exclude /proc --exclude /run --exclude /media/* / .

(no pibackup dir created, no reaction then any more... :evil: )
We actually thought of selling this to the Soviets to set their computer science progress back 20 or more years.
me too.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:14 am

update:
after ejecting and re-plugging:

the pibackup dir HAS been created !!! :shock:
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:15 am

davenull wrote:again hangs up

pi@raspberrypi:/media/pi/USB120DRV $ sudo tar --exclude=/media/* --exclude=/proc --exclude=/dev --exclude=/tmp --exclude=/run cvzf /media/pi/USB120DRV/pibackup.tar.gz /
tar: Eine der Optionen „-Acdtrux“, „--delete“ oder „--test-label“ ist notwendig.
„tar --help“ oder „tar --usage“ gibt weitere Informationen.
pi@raspberrypi:/media/pi/USB120DRV $ mkdir -p /media/pi/USB120DRV/pibackup
pi@raspberrypi:/media/pi/USB120DRV $ cd /media/pi/USB120DRV/pibackup/
pi@raspberrypi:/media/pi/USB120DRV/pibackup $ sudo rsync -avz --delete --exclude /sys --exclude /tmp --exclude /proc --exclude /run --exclude /media/* / .

(no pibackup dir created, no reaction then any more... :evil: )
We actually thought of selling this to the Soviets to set their computer science progress back 20 or more years.
me too.
Why are you still using tar instead of rsync?

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:17 am

perhaps that f***** small screen and that f***** command line and the f***** p'n'p which does not work between iceweasel and LX terminal
(I ever knew: Linux was a hoax. Is it embraced by the Texas hoax bomb law?)

can you pass the cmd again please?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:23 am

found it:

sudo apt-get install rsync -y
mkdir -p /media/pi/usb120drv/pibackup
cd /media/pi/usb120drv/pibackup/
sudo rsync -avz --delete --exclude /sys --exclude /tmp --exclude /proc --exclude /run --exclude /media/* / .
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:25 am

pi@raspberrypi:~ $ sudo apt-get install rsync -y
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
rsync ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
pi@raspberrypi:~ $ mkdir -p /media/pi/usb120drv/pibackup
mkdir: das Verzeichnis „/media/pi/usb120drv“ kann nicht angelegt werden: Keine Berechtigung
pi@raspberrypi:~ $ cd /media/pi/usb120drv/pibackup/
bash: cd: /media/pi/usb120drv/pibackup/: Datei oder Verzeichnis nicht gefunden
pi@raspberrypi:~ $ sudo rsync -avz --delete --exclude /sys --exclude /tmp --exclude /proc --exclude /run --exclude /media/* / .

hangs up.
Image
Last edited by davenull on Sun Jan 03, 2016 12:26 am, edited 1 time in total.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:26 am

davenull wrote:perhaps that f***** small screen and that f***** command line and the f***** p'n'p which does not work between iceweasel and LX terminal

can you pass the cmd again please?
Use putty and ssh into your pi (but that might take a while to explain...[disclaimer: I use the command line as much as possible, even in windows, and I'm really hacked off they removed the unix stuff from the server OS])

Anyway:

Code: Select all

mkdir -p /media/pi/USB120DRV/pibackup
cd /media/pi/USB120DRV/pibackup/
sudo rsync -avz --delete --exclude /sys --exclude /tmp --exclude /proc --exclude /dev --exclude /run  --exclude /media/* / .

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:26 am

I have no putty
I have no ssh

disclaimer: I use WINDOWS
I never use cmd line and never will if possible !
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:29 am

there is already pibackup dir on my usb drv
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:31 am

entering again, sth's going on...
pending....
seems to save...


will also the user login dir /pi/ be saved?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:36 am

...still working...

...still working...
Last edited by davenull on Sun Jan 03, 2016 12:39 am, edited 1 time in total.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:37 am

davenull wrote:I have no putty
I have no ssh

disclaimer: I use WINDOWS
I never use cmd line and never will if possible !
All this has been posted from a windows laptop.

I'm sorry that you limit yourself, I can only help you if you want to help yourself, but you won't.

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:41 am

if it's a simple command, I surely let me help!
but Linux is a crap.

anyway, it's still copying... ... as it seems ... not sure though....
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:46 am

no, again hangs up... :evil:
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:50 am

davenull wrote: but Linux is a crap.
So how do you explain that more devices run a type of unix than any other OS (most smart TVs run it, most routers run it, every android device runs it, PS3 and PS4 run it, and even Apple devices run it).
Last edited by asandford on Sun Jan 03, 2016 12:52 am, edited 1 time in total.

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:51 am

well, I don't know anything about Apple except "High Walls and Holy Gardens". I don't like Apple and I don't play PS.

anyway, the backup Linux command simply don't work, I wish it would.
Inserting the drv into my Windows PC (after safe eject) it says the file system is corrupted and has to be recovered.
Last edited by davenull on Sun Jan 03, 2016 12:57 am, edited 1 time in total.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

asandford
Posts: 1998
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:57 am

davenull wrote:well, I don't know anything about Apple except "High Walls and Holy Gardens". I don't like Apple.

anyway, the backup Linux command simply don't work, I wish it would.
Worked fine on my PI, even the tar file.

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 12:58 am

not for me - so what is faulty or defective?
chkdsk /f is ok.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 1:00 am

is there a professional program available, like Norton Ghost or Acronis True Image?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 1:05 am

anyway, it's not your fault -
thanks for your input and your efforts, you really spent lot of time to help me, it's just because of the Linux crap at it's best...

how I love it.

(No, actually I despair.)

Thank you very much nevertheless, indeed.
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

davenull
Posts: 1159
Joined: Thu Oct 22, 2015 7:22 am
Location: a small planet close to Betelgeuze

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 1:27 am

another one, besides:
http://www.gnu.org/fun/jokes/unix-hoax.html

have a look at:
http://richardkulisz.blogspot.de/2010/1 ... -crap.html

anyway, I wish: simply a backup would work! :evil:
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}

SonOfAMotherlessGoat
Posts: 690
Joined: Tue Jun 16, 2015 6:01 am

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 2:02 am

SInce we're posting witty things, here's my contribution... (Possibly NSFW?) http://www.imdb.com/title/tt0080339/quo ... =qt0484164 Quote from Airplane! The Movie...
Account Inactive

User avatar
jojopi
Posts: 3271
Joined: Tue Oct 11, 2011 8:38 pm

Re: SD card backup / copy: how to ?

Sun Jan 03, 2016 7:58 am

davenull wrote:pi@raspberrypi:/media/pi/USB120DRV $ sudo tar --exclude=/media/* --exclude=/proc --exclude=/dev --exclude=/tmp --exclude=/run cvzf /media/pi/USB120DRV/pibackup.tar.gz /
Old-style clumped options with no leading hyphen, "cvzf", are only allowed as the first argument. You wanted "-cvzf".

More on topic, you will not be able to restore any rsync or tar backup without first reinstalling the OS. Therefore I see no reason to backup the OS. Just backup /home/pi and any other specific directories you need.

Return to “Raspberry Pi OS”