Rclone DSM 7.0 is a powerful backup solution that allows you to easily copy your data from your Synology DiskStation to other cloud storage services like Google Drive, Dropbox, and Amazon S3.
With Rclone DSM 7.0, you can set up a backup schedule to automatically transfer your data at regular intervals, ensuring your files are always up to date.
The DSM 7.0 integration makes it easy to manage your backups from within the Synology interface, giving you a centralized view of all your backup settings.
Rclone DSM 7.0 supports a wide range of cloud storage services, including Google Drive, Dropbox, and Amazon S3, among others.
Setup Process
To set up rclone on your Synology DSM 7.0, you'll need to create a folder for Docker configs using File Station. This is where you'll store all your Docker configurations.
First, you'll need to have a private network established. This is likely done by default, but if not, go to the Network section and set up a bridge with IPv4 configuration set to Auto, IPv6 configuration set to None, and Disable IP Masquerade as off.
To install rclone, you can either use a script or install it manually via an elevated prompt. The script can be found on the author's Github, under Scripts/Synology Rclone.
Here are the steps to create a rclone container:
1. Open Container Manager.
2. Search for rclone in the top-right corner and double-click/download the rclone/rclone image.
3. Choose the latest tag if prompted.
4. Go to the Container section and click Create.
5. Choose the rclone/rclone:latest image from the dropdown.
6. Name the container rclone instead of the default name.
7. Set the following advanced settings:
- Port Settings: Map 5572 on both local and remote side using TCP.
- Volume Settings: (not specified in the article)
- Environment: (not specified in the article)
- Network: Use the bridge network established earlier.
- Execution Command: rcd --rc-web-gui --rc-addr :5572 --rc-user secret_user --rc-pass secret_password
Configuring and Running Sync
Now that you've installed and configured rclone, it's time to configure the script for your backup jobs. The script and config are located at /volume1/scripts/rclone/backup.
rclone_backup.sh is the script itself and shouldn't need to be changed unless you require modifications as to how it functions.
The config is where the script will gather its configuration from, and that's where you'll need to input some variables. At a minimum, you'll need to fill in the configuration from the config file.
Once you're happy that it's running as it should, you can schedule the tasks required.
Defaults
Defaults play a crucial role in configuring rclone dsm 7.0. By default, TRANSFER_LIMIT is set to 4, although your mileage may vary.
You can adjust this setting as needed, and there are other default settings to be aware of. EXCLUDE_PATTERNS are currently set to exclude Synology junk and .DS_Store files from MacOS.
The OPERATION_MODE is set to copy by default, but it's recommended to read the documentation if you're unsure. Sync mode will not provide a proper backup, as files removed from the LOCALDIRS will also be deleted from the REMOTEDIR on the next run.
You can tweak these settings to suit your needs and add custom flags under CUSTOM_FLAGS if required. EXCLUDE_IF_PRESENT and INCLUDE_PATTERN are included by default but are blank, so populate them if necessary.
Here are the default settings to keep in mind:
- TRANSFER_LIMIT: 4
- EXCLUDE_PATTERNS: excludes Synology junk and .DS_Store files from MacOS
- OPERATION_MODE: copy
- EXCLUDE_IF_PRESENT: blank
- INCLUDE_PATTERN: blank
Synology DS1019+ Settings
To set up your Synology DS1019+, you'll first need to specify the mount location. This is where you'll create a directory that will be used to mount your N40L device using rclone. The example shows creating a directory called "n40l_video" in the "/volume1/mount" path.
To do this, go to the Control Panel, then click on Shared Folders, and select Create. Choose Mount, then uncheck the "Trash" option, as this will be a remote storage location. Apply the changes and then navigate to File Station, select Mount, and create a new folder called "n40l_video".
The next step is to install rclone on your Synology DS1019+. This involves logging in as the root user via SSH, then downloading the rclone zip file from the official website. Once downloaded, extract the contents of the zip file and copy the rclone executable to the "/usr/bin" directory. Give the file execute permissions and change the ownership to root.
To configure rclone, you'll need to run the "rclone config" command. This will prompt you to enter the remote name, storage type, URL, and other details. In this example, the storage type is set to WebDAV, with the URL set to "http://192.168.1.20:5005". You'll also need to enter your N40L login ID and password.
Here's a list of the rclone configuration options:
Once you've configured rclone, you can mount the remote storage location using the "rclone mount" command. This command takes several options, including the remote name, remote path, and mount local path. In the example, the command is used to mount the "N40L:/video" directory to the "/volume1/mount/rclone_n40l_video" directory.
Methodology
To install rclone on DSM 7.0, you can use either native installation or Docker.
There are two ways to get rclone onto your Synology: native installation and Docker. I'll be using the native method.
The native method has a drawback: the package isn't persistent across DSM updates.
You can easily reinstall rclone, but we can achieve persistence using DSM's task scheduler and a shell script.
Frequently Asked Questions
What is the DSM in Synology NAS?
DSM is a Linux-based operating system used on Synology NAS devices, providing an intuitive web interface for managing digital assets. It makes managing your digital life easy and effortless.
Featured Images: pexels.com