It would be great
to create a step-by-step guide
to backing up a
ReadyNAS to a local USB drive for those of us newbies who are, well, new
to the whole thing

I'm a bit at a loss, because my searches of the forums are coming up with contradictory information. For example:
viewtopic.php?p=240107#p240107viewtopic.php?p=266997#p266997One says that the source should be a 'remote:
rsync server' the other says that the destination should be an '
rsync server'. It's not clear if both methods work, or if one is preferred over the other.
(Per below & experience: both methods DO work and neither is preferred, however, if you want to backup private home shares with rsync, then you must set the destination to be the 'remote: rsync server')(Another situation where 'remote: rsync server' must be the destination is if you are trying to backup your an entire ReadyNAS volume at once. In that case, your 'souce' becomes 'volume: <volumeLetter' and the destination is configured as described below.I also can find no documentation about the syntax allowed in the 'exclusion list'. Is it only for files and directories? Are wildcards allowed?
How are the directories notated?
(Wildcards--at least '*' and '?' are indeed valid.)
And so on....
Here's what I've come up with so far. I'd love it if folks can add in the missing steps or clarify any of the missing pieces (currently based on my setup--
ReadyNAS Pro Business and RAIDiator 4.2.15). Since I am focused on LOCAL backups, I will ignore any of the possibilities of using
Rsync over SSH or the need
to set specific
rsync users & passwords:
1. Enable
Rsync service in Frontview: Services->Standard File Protocols->
Rsync2. Set
Rsync permissions on the shares you want
to backup (your source shares): Shares->Share Listing
NOTE: if rsync only has 'read-only' permissions to your source share, you will need to give rsync 'read/write' access if you ever want to use rsync to restore to that share.
3. Set
Rsync permissions on the USB Storage Device(s) you are backing up
to (your destination shares).
The default of 'read/write' is fine.
4. Define your backup job(s) in Frontview: Backup->Add New Backup Job.
4a) Set up the Source:
- I find it easiest to think of the source being the rsync server, so unless I'm backing up a home share, I always use 'remote: rsync server' up here.
- Since we are backing up your local ReadyNAS, your hostname can be any of the following: <ReadyNAS name>, localhost, 127.0.0.1
- The path to your backup source: <shareName>/<folderStructure> (note that the trailing '/' is not strictly needed, but the beginning of the path should NOT include a '/') Also note that this path is CASE-SENSITIVE.
- Your login & password should be blank if you haven't set any of the shares in step 2 to require an rsync user/password.
- The option to tunnel rsync over ssh is not needed since were only concerned with local backups
- The option to 'enable compression' should remain unchecked. It's not useful when backing up to a local destination since bandwidth is not a concern.
- The option to 'remove deleted files' is worded in a slightly misleading fashion. This option will remove files from your backup destination that no longer exist on the source when doing incremental backups. (Also, the same thing holds true when using the rsync server as a destination, although the wording is still confusing.) Using this option means that your backup will basically be an exact duplicate of your source as of the backup time.
- Enter your exclusion list. For example, if I wanted to exclude my lossy photos and only keep my RAW versions, I could use "*.jpg,*.JPG" The exclusion list is case-sensitive, so if your file extensions are a hodge-podge of capitalization, it's possible that your results will not be as you expect. File paths work here too--also in conjunction with files themselves.
4b) Set up the Destination:
- Choose the share on your USB drive that you defined rsync permissions for in Step 3.
- You can leave the 'host' field blank.
- Enter the path to your backup destination: <folderStructure> (again, note that there is not a leading '/'). Case-sensitivity is still important.
- Unless you defined an rsync login/password for your USB share, you can leave these blank.
NOTE: If you are using the rsync server as the destination, you will have to enter your USB share as the first part of the path. This is ALSO case-sensitive (ie. USB_HDD_1_1 is not the same as usb_hdd_1_1).
4C) Set up the schedule:
- The frequency is
how often the backup job will be triggered in a single day.
- The hours are when it will begin trying
to trigger, and when it will stop trying.
This is important if you have multiple jobs scheduled. If Job1 continues past both the START and END times of Job2, then Job2 will never trigger.
- Check off which days you want the preceding rules in effect.
4D) Set up Full/Incremental & Special options:
- Choose
how often you would like a full backup
to be performed as opposed
to incremental backups.
- Choose your Log file verbosity
* Note: the option
to remove the contents of the backup destination ONLY takes effect when a full backup is being done (per the schedule in the first option).
- Because we are only backing up locally, the ownership change option doesn't really apply, but it is an important tool to have if you back up remotely or plan on moving your USB drive to a different unit to restore files.
No comments:
Post a Comment