View previous topic :: View next topic |
Author |
Message |
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sat Oct 16, 2010 3:35 pm Post subject: trying to make backup of file system, Broken pipe |
|
|
I am trying to make a backup of my file system like so:
Code: | tar -vczpf --exclude=dev/* --exclude=proc/* --exclude=sys/* --exclude=media/* --exclude=home/*/.gvfs/* / /media/Backups/`hostname`.tar.gz |
But tar keeps printing this:
Code: | tar: Removing leading `/' from member names
tar (child): --exclude=dev/*: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
/
/boot/
/boot/lost+found/
/boot/grub/
/boot/grub/memrw.mod
/boot/grub/ata.mod
tar: --exclude=dev/*: Cannot write: Broken pipe
tar: Error is not recoverable: exiting now |
|
|
Back to top |
|
|
slis Retired Dev
Joined: 11 Oct 2010 Posts: 67 Location: Limanowa
|
Posted: Sat Oct 16, 2010 3:54 pm Post subject: |
|
|
Try this:
Code: |
tar -vczpf /media/Backups/`hostname`.tar.gz / --exclude=dev/* --exclude=proc/* --exclude=sys/* --exclude=media/* --exclude=home/*/.gvfs/*
|
|
|
Back to top |
|
|
jordanwb l33t
Joined: 10 Jul 2008 Posts: 642 Location: Ottawa, Canada
|
Posted: Sat Oct 16, 2010 5:29 pm Post subject: |
|
|
That worked. Thanks. |
|
Back to top |
|
|
|