Re: backup script partly fails when in cron.weekly
Andrew Sackville-West <andrew@farwestbilliards.com> writes:
> On Tue, Dec 11, 2007 at 08:24:07AM -0500, Haines Brown wrote:
> > Benjamin Schmidt <b.schmidt@t-p.com> 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, thanks for the suggestion, but I had a problem with the
> > script:
> >
> > Cowardly refusing to create an empty archive
> >
> > I don't understand this error.
>
> It means that when tar followed all the instructions you gave it,
> there was nothing left to put in the archive, so it sanely refuses to
> create the archive. I looks like you're missing the final path on that
> line. man tar
Andrew, I appended a "\*" to the script and it seems now to
run OK. Thanks.
--
Haines Brown, KB1GRM
Reply to: