Link to home
Start Free TrialLog in
Avatar of RiccardoQuest
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.
Avatar of Aaron Tomosky
Aaron Tomosky
Flag of United States of America image

Rsync doesn't really version.  However if you pair it with zfs snapshots its awesome.
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.
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_dateoflastclone, and then rsync again, and then rsync would just copy the files that changed.
Avatar of RiccardoQuest
RiccardoQuest

ASKER

my post incorrect, will submit shortly.
ASKER CERTIFIED SOLUTION
Avatar of skullnobrains
skullnobrains

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
rsnapshot might be a bit simpler to implement.