RiccardoQuest
asked on
Using Rsync to backup to a destination with archive data in separate folders with dates.
I am using a Ubuntu Box 12.4tle as a backup node to backup NAS1 to NAS2 (source and Destination)
I am using Lucky backup which is a GUI for rsync to do this as i am a Linux novice.
Can someone tell me what i need to do to get the below working.
I need the source share on NAS1 to sync to the Source share on NAS2 (full backup), but i need any changes (incremental backup) to be put in a folder within that share "archive data" with the folder named with the day of the incremental backup.
So the 2 main shares stay the same on both NAS's but on the backup location we have a folder with incremental backups with date the backup was made, file structure (hardlinks) intact.
I am using Lucky backup which is a GUI for rsync to do this as i am a Linux novice.
Can someone tell me what i need to do to get the below working.
I need the source share on NAS1 to sync to the Source share on NAS2 (full backup), but i need any changes (incremental backup) to be put in a folder within that share "archive data" with the folder named with the day of the incremental backup.
So the 2 main shares stay the same on both NAS's but on the backup location we have a folder with incremental backups with date the backup was made, file structure (hardlinks) intact.
rsync -av sourceshare username@NAS2:/archivedata
Will make everything in archivedata contain whatever is in sourceshare. rsync does NOT do incremental backups. It makes everything match, but only updates files that changed.
So if you want incremental backups, then rsync isn't for you, unless as aarontomosky stated, the NAS2 system is zfs based.
Now you could copy archivedata to archivedata_dateoflastclon e, and then rsync again, and then rsync would just copy the files that changed.
Will make everything in archivedata contain whatever is in sourceshare. rsync does NOT do incremental backups. It makes everything match, but only updates files that changed.
So if you want incremental backups, then rsync isn't for you, unless as aarontomosky stated, the NAS2 system is zfs based.
Now you could copy archivedata to archivedata_dateoflastclon
ASKER
my post incorrect, will submit shortly.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
rsnapshot might be a bit simpler to implement.
http://bnsmb.de/solaris/How%20to%20use%20ZFS%20and%20rsync%20to%20create%20a%20backup%20solution%20with%20versioning.html
Linux has zfs as an addon, but if your not too deep, check out zfsguru. Ready to go on FreeBSD.