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.

Automated backup of selected folders to internal drive - how?

Featured Replies

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.

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

 

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.

 

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.

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.