tar question

Scot L. Harris webid at cfl.rr.com
Mon Aug 2 20:39:43 UTC 2004


On Mon, 2004-08-02 at 16:32, Michael Sullivan wrote:
> I've set up a script that backs up the entire /home folder into a file
> labeled with the computer name and the date the file was made.  This
> works well, but takes up a lot of space, and only two days worth of
> archives fit on a single CD.  I know how I want to remedy the situation,
> but I don't know how to script it.  Here's what I want to do:  On Sunday
> I want the whole /home folder backed up into its own file.  On Monday
> through Saturday I want only the files that have changed since the last
> backup backed up into their own files, one for each day.  That should
> make seven files that are small enough to fit onto one CD.  One CD per
> week.  Is it possible to do it this way, and if so, how would I do it?  
> I do a lot of programming, so I need separate backup archives so that I
> can access an older version of a particular file if need be...

Been a while since I did something like this.  :)

Use find to generate the list of changed files.  I don't remember the
options off the top of my head but you should be able to sort it out
using the man pages.  Once you get find to locate the modified files
pipe that output to tar to use for its input list.

Hope that helps.

-- 
Scot L. Harris
webid at cfl.rr.com

Power is danger.
		-- The Centurion, "Balance of Terror", stardate 1709.2 





More information about the fedora-list mailing list