Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Backing up cache drive

Featured Replies

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!

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.

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

 

 

 

 

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.