Re: backup script partly fails when in cron.weekly

2007-12-12 Thread Haines Brown
Andrew Sackville-West <[EMAIL PROTECTED]> writes: > On Tue, Dec 11, 2007 at 08:24:07AM -0500, Haines Brown wrote: > > Benjamin Schmidt <[EMAIL PROTECTED]> writes: > > > > > But maybe you should not use this (in my opinion) unusual command "find > > > / -print ...". Instead use tar, like: > > > >

Re: backup script partly fails when in cron.weekly

2007-12-11 Thread Andrew Sackville-West
On Tue, Dec 11, 2007 at 08:24:07AM -0500, Haines Brown wrote: > Benjamin Schmidt <[EMAIL PROTECTED]> writes: > > > But maybe you should not use this (in my opinion) unusual command "find > > / -print ...". Instead use tar, like: > > > > tar -zcvf /media/mirror/`date +%F`.tar.gz -C / --exclude=/me

Re: backup script partly fails when in cron.weekly

2007-12-11 Thread Haines Brown
Benjamin Schmidt <[EMAIL PROTECTED]> writes: > But maybe you should not use this (in my opinion) unusual command "find > / -print ...". Instead use tar, like: > > tar -zcvf /media/mirror/`date +%F`.tar.gz -C / --exclude=/media/* > --exclude=/proc/* --exclude=/sys/* --exclude=/mnt/* Benjamin, tha

Re: backup script partly fails when in cron.weekly

2007-12-10 Thread Benjamin Schmidt
Ok, first: Why it doesn't work I simply don't know. You should test if this is a problem with find, or the egrep command, cpio or cat by making verbose output into a own log file. But maybe you should not use this (in my opinion) unusual command "find / -print ...". Instead use tar, like: tar -z

backup script partly fails when in cron.weekly

2007-12-09 Thread Haines Brown
I asked this question some time ago. I've a script in /etc/cron.weekly named "backup" (rwxr-xr-x root/root) that looks like this: #!/bin/sh mount /media/mirror dirName=`date +%F` mkdir /media/mirror/"$dirName" find / -print | egrep -v "^/media|^/proc|^/sys|^/mnt" | cpio -pdmuv \ /media/mirror/"$di