Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
trying to make backup of file system, Broken pipe
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Sat Oct 16, 2010 3:35 pm    Post subject: trying to make backup of file system, Broken pipe Reply with quote

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
View user's profile Send private message
slis
Retired Dev
Retired Dev


Joined: 11 Oct 2010
Posts: 67
Location: Limanowa

PostPosted: Sat Oct 16, 2010 3:54 pm    Post subject: Reply with quote

Try this:
Code:

tar -vczpf /media/Backups/`hostname`.tar.gz / --exclude=dev/* --exclude=proc/* --exclude=sys/* --exclude=media/* --exclude=home/*/.gvfs/*
Back to top
View user's profile Send private message
jordanwb
l33t
l33t


Joined: 10 Jul 2008
Posts: 642
Location: Ottawa, Canada

PostPosted: Sat Oct 16, 2010 5:29 pm    Post subject: Reply with quote

That worked. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum