Page 3 of 5

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:01 am
by davenull
back to topic:
backup still don't work, even when using capital letters... :(

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:07 am
by asandford
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 .

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:08 am
by davenull
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.

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:14 am
by davenull
update:
after ejecting and re-plugging:

the pibackup dir HAS been created !!! :shock:

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:15 am
by asandford
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?

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:17 am
by davenull
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?

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:23 am
by davenull
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/* / .

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:25 am
by davenull
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

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:26 am
by asandford
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/* / .

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:26 am
by davenull
I have no putty
I have no ssh

disclaimer: I use WINDOWS
I never use cmd line and never will if possible !

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:29 am
by davenull
there is already pibackup dir on my usb drv

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:31 am
by davenull
entering again, sth's going on...
pending....
seems to save...


will also the user login dir /pi/ be saved?

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:36 am
by davenull
...still working...

...still working...

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:37 am
by asandford
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.

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:41 am
by davenull
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....

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:46 am
by davenull
no, again hangs up... :evil:

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:50 am
by asandford
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).

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:51 am
by davenull
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.

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:57 am
by asandford
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.

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 12:58 am
by davenull
not for me - so what is faulty or defective?
chkdsk /f is ok.

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 1:00 am
by davenull
is there a professional program available, like Norton Ghost or Acronis True Image?

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 1:05 am
by davenull
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.

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 1:27 am
by davenull
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:

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 2:02 am
by SonOfAMotherlessGoat
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...

Re: SD card backup / copy: how to ?

Posted: Sun Jan 03, 2016 7:58 am
by jojopi
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.