backup script

Kurt Wall kwall
Mon May 17 11:57:35 PDT 2004


In a 1.8K blaze of typing glory, Keith Morse wrote:
> On Fri, 26 Dec 2003, Marianne Taylor wrote:
> 
> > I am creating a script to backup my e-mail each night.  Attached is the 
> > script, but my only problem is that it isn't doing any of the hidden 
> > /directories or files.  I thought that tar would do this routinely?
> > 
> > Perhaps I have missed something obvious, any help would be greatly 
> > appreciated.
> 
> This must explain some of the examples I've over time of other peoples 
> backup scripts.  Namely "find" is used to develop an include list as a 
> file that is then used as an argument to tar.  This might be easier than 
> getting tar to include those hidden files and directories.

I think so. I pipe find's output into cpio, to wit:

find -depth $HOME/mail | cpio -oadmvr <blah>

Kurt
-- 
The problem with any unwritten law is that you don't know where to go
to erase it.
		-- Glaser and Way


More information about the Linux-users mailing list