How do I write a script which creates incremental backups using rsync or what are the parameters to do the incremental backup?
Here's the scenario:
I have a samba file server and I need to backup to usb external drive any changes or additional files created on a specific samba folder. Location of files that I need backup (/opt/Resources and /opt/Resources Shared Folder 2) and the destination (/media/disk/Resources Files Backup).
I tried to create a file (zipfiletest) on /opt/Resources and manually run rsync to see if the file transfer to the usb external hard drive, it seems it works but I don't know how to do it automatically if ever there's a new file created or modified from the samba source.
[root@fileserver Resources]# rsync -azv /opt/Resources/zipfiletest /media/disk/Resources\ Files\ Backup01292013/Resources
sending incremental file list
zipfiletest/
sent 47 bytes received 16 bytes 126.00 bytes/sec
total size is 0 speedup is 0.00