[KLUG Members] Incrimental backup of one drive to the other.

Bert Bbbink kalamazoo at dse.nl
Tue Nov 1 02:29:28 EST 2005


>I would like to do a simple incrimental backup w/compression of one drive to
another.  Does any one have any sugested scripts or programs.


You can try this in some bash script:

days="+5"          #files older than 5 days; see the -mtime option of find
days="-10";        #or files younger than 10 days

SOURCE="/somthing/i/like/to/backup
DEST="/where/i/like/to/put/my/backup

find $SOURCE -mtime $days -print | cpio -pvdum $DEST


----------------
It simply takes the modification time of the files/dirs in the source tree
and copies them to the dest-tree. It does -not- remove files from your
dest tree if the are deleted from the source tree. This also means youre
dest tree keeps on growing. Files with the same /path/filename overwrite.

Regards,

Bert.


More information about the Members mailing list