February 2, 201214 yr HARDWARE: HP N40L + two drives (1 data, 1 parity). Spare drive in slot 3. Hi all, New UnRAID user, all set-up and working fine. Hardware listed above. I want to back-up certain folders (but not the whole data drive as it is a mix of replaceable and irreplaceable data) on a periodic basis (say weekly) to a 3rd drive in one of the spare bays. Obviously this drive won't be part of the array. I've done a fair bit of reading but am a bit lost, so looking for direction. I *think* SNAP might be of use for this (and I used it successfully for copying data onto array from an external AFP drive), but am unsure? I'm also unsure as to the best format for a backup drive, assuming I get a choice. Some pointers really appreciated! Thanks.
February 5, 201214 yr I'm not sure if someone has made a customization for this yet, but I would use 'rsync' in a 'cron job' to do the trick. requires some Linux Knowledge; or one of the guru's on here may be nice and provide you with scripts An example rsync command that I use is: > rsync -rpt /source_folder/ /destination_folder
February 5, 201214 yr Hi, there are a couple ways of accomplishing this. Unraid has a file called "root": /var/spool/cron/crontabs/root You can edit the above file directly and add your own cronjob with your day/time preference. (It's accomplished via In that file there are also some preset cron jobs. specifically; /etc/cron.daily /etc/cron.hourly /etc/cron.weekly /etc/cron.monthly The weekly folder is set to go off on Sunday at 4:30 AM You can simply add a file in /etc/cron.weekly, make it executable and it will run at that time. Below is a sample you can use, make sure you put this in you "go" script (The file gets wiped after every reboot, the go script will ensure it gets made everytime) echo "rsync -a --delete-after /mnt/user/folder /mnt/spare/backup" >/etc/cron.weekly/file_name.sh chmod +x /etc/cron.weekly/file_name.sh The above code runs an rsync command (google man rsync to see all the options available to you) Copies the folder "/mnt/user/folder" to /mnt/spare/backup That information goes into a file named "file_name.sh" in the cron.weekly folder. The next command changes the file to an executable. Feel free to experiment with rsync, from folder, to folder, the name of the file. This is one way of accomplishing the task.
February 9, 201214 yr I'll take a tack that's slightly more complicated to set up, but has some real benefits... Crashplan. There are a few howto's around on how to get it up and running on unRAID. It supports backing up to a local disk, and will handle versioning, data deduplication and sending status emails to you on an automated basis.
Archived
This topic is now archived and is closed to further replies.