Subject: Re: Simple Backup Script
To: None <netbsd-users@NetBSD.org>
From: Daniel Cox <dc@microbits.com.au>
List: netbsd-users
Date: 12/31/2004 13:26:56
rsync (package)

rsync -auv /mnt/samba /mnt/external

>>> Brian Rose <lists@brianrose.net> 12/31/04 12:59 PM >>>

I'm looking to backup my Samba share onto an external FAT32 drive. Is =
there=20
a relatively simple way to do incremental backups? Basically if a file =
is=20
changed or added, I want the script to copy only the changed or added =
files=20
to an identical tree on the external drive.

A 'cp -R /mnt/samba /mnt/external' would do the trick, but it would waste =
a=20
lot of time overwriting unchanged files. Is there a 'copy if newer' =
flag?=20
man cp did not turn up any info on such a capability.

Thanks in advance

--=20

Brian