May 20, 201214 yr I've gotten RSYNC sucessfully pulling a "remote system" (eg, a webserver I have - out in the 'sky') -- and I really love the "daily/weekly/monthly" style of backups provided by 'automysqlbackup' on that remote site. I'm wanting to do the same thing to my UNRAID server for all the "other" files -- PDFs, HTML, etc stored "out in the sky" I AM NOT A UNIX person -- but pretty dangerous.... Any recommendations for such scripts that would do - auto-magically - an rsync into automatic "daily/weekly/monthly" backups -- using hard-links so that I'm not wasting a bunch of space. I need to run the script - *ON* my Unraid server - to *PULL* the remote files down...
May 21, 201214 yr Author Does the remote system run an rsync server? Yes... I can RSYNC between the systems. (Well, specifically, I initiate on the UNRAID server to do it)
May 21, 201214 yr I add this line to the go script: cp /boot/custom/rsync-disk2 /etc/cron.daily You can change daily to weekly or monthly as desired. This is the script to be run daily (the contents of /boot/custom/rsync-disk2): #!/bin/bash rsync -lpgoDvrH --timeout=120 --progress --size-only /mnt/disk2/ rack::mnt/disk2/
May 21, 201214 yr Author I add this line to the go script: cp /boot/custom/rsync-disk2 /etc/cron.daily You can change daily to weekly or monthly as desired. This is the script to be run daily (the contents of /boot/custom/rsync-disk2): #!/bin/bash rsync -lpgoDvrH --timeout=120 --progress --size-only /mnt/disk2/ rack::mnt/disk2/ Thank you ever so kindly. This is quite similar to what I have been doing, but it is rather static. In my original post, I was looking for something a bit more complex... my desires are: 1) Daily/weekly/monthly backups with rotation 2) Hard-link support so that the same file isn't physically duplicated if it exists in a prior backup I've been looking at the YARBU script -- http://yarbu.sourceforge.net/ - but the documentation and examples are scarce -- it simply assumes you "know what you are doing" I figured that instead of re-inventing the wheel, that somebody out there - with an UNRAID box {or perhaps even just a home linux/unix system} had found a script that works well for them for such rotation/hard-links.
Archived
This topic is now archived and is closed to further replies.