Subject: Simple Backup Script
To: NetBSD Users <>
From: Brian Rose <>
List: netbsd-users
Date: 12/30/2004 21:24:10
I'm looking to backup my Samba share onto an external FAT32 drive. Is there 
a relatively simple way to do incremental backups? Basically if a file is 
changed or added, I want the script to copy only the changed or added files 
to an identical tree on the external drive.

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

Thanks in advance