On Sun, 2006-10-22 at 12:44 -0500, Jim Reimer wrote:
> Michael Sullivan wrote:
>
> > Every Sunday I have cron make full backups of the /home directories
> on
> > each of my computers (it's a home network). I then run tar tvf >
> > <date>.txt on each tarball and compare it to the tarball from the
> last
> > week, and then delete from the tarball the previous week every
> > included file that hasn't changed. I make the comparison by saying
>
> > reset; diff <last-Sunday>.txt <this-Sunday>.txt | grep
> > '<directory-name> | grep '<'
>
> > As you can imagine, this can be quite time consuming. Is there an
> > easier way to do this? I was thinking either one included in tar
> that
> > would compare the two tarballs and then delete from the old one any
> > duplicate files. Or, is there a way to extract only the filenames
> > from "diff <last-Sunday>.txt <this-Sunday>.txt | grep
> > '<directory-name> | grep '<'" to be included in a script that
> removes
> > filenames without duplicates and then passes to tar for deletion?
>
> Instead of deleting from the previous weeks tarball the files that
> haven't changed, why don't you just make this week's include only the
> files that have?
>
> tar --after-date
> tar --newer
> tar --newer-mtime
> etc.
>
> --
> -jdr-
Because a Sunday's full backup needs to stay a full backup until the
following Sunday when another full backup is made, in case something
goes wrong. That's why they're made once a week. Unfortunately, I
can't afford the storage (blank CDs or places to store the CDs after
they've been written), which is why I do it this way. I don't edit an
older full backup until I have a newer full backup.
To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be
removed.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/LINUX_Newbies/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/LINUX_Newbies/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/