April 1, 201115 yr Not sure if something exists to do this already. I was thinking about what would be lost on failure of my cache drive in the event of a catastrophic (i.e. unrecoverable) drive failure. Understand that any unswept files would be lost if the drive fails before a nightly sweep to the array... I'm fine with that. The more irritating thing would be the loss of my _custom directory with Sickbeard, SAB and CouchPotato. Is there a script that would back that up (say nightly) to the array, so it's protected in the event of a failure of the cache drive? Would then be easy to swap the failed cache drive out and copy the folder(s) back to bring it back to full operation. Thank you!
April 1, 201115 yr Nothing that I know of built into unMenu of the like. With that being said setting up a cron job to run and copy a folder to an array disk would not be two hard really.
April 2, 201115 yr I created a script named cache_backup to use rsync to back up the .custom folder on my cache drive to one of the array disks. Make sure the destination folder (/mnt/disk1/System/unRAID in this example) exists before you run the script. #!/bin/sh date >/var/log/cache_backup.log /usr/bin/rsync -av /mnt/cache/.custom/ /mnt/disk1/System/unRAID >>/var/log/cache_backup.log I have my go script copy the cache_backup script to the weekly cron folder cp /boot/custom/bin/cache_backup /etc/cron.weekly The logfile is located in /var/log/cache_backup.log You can have it run on a daily basis by copying it into /etc/cron.daily instead cp /boot/custom/bin/cache_backup /etc/cron.daily Kevin
April 2, 201115 yr Author Wonderful - thank you very much Kevin. I think I'm getting the hang of these scripts a bit now! Maybe I'll just write the next one myself.
Archived
This topic is now archived and is closed to further replies.