Created
October 29, 2016 02:55
-
-
Save centminmod/95af5c3b7b90c95a8db38ce36cc3f0a8 to your computer and use it in GitHub Desktop.
Install rclone in Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM 1. Create C:\Program Files\rclone | |
REM 2. Download rclone http://rclone.org/downloads/ and unzip it to C:\Program Files\rclone | |
REM 3. Save this file as C:\Program Files\rclone\rclone.bat | |
REM 3. Set the blank variables seen below. | |
REM 3.1 Set RCLONE_ROOT_FOLDER_NAME to the name of the folder in ACD where you want all backups to go. "Backup". | |
REM 3.2 Set RCLONE_FOLDER_NAME to the name of this machine's backup. | |
REM 4. Create C:\Program Files\rclone\sources.txt file with a line for each source. C:\Users\admin\Desktop;Desktop | |
REM 4.1 Before the ";" is the source path. After the ";" is the destination in ACD. | |
REM 5. Create C:\Program Files\rclone\excludes.txt file with a line for each globally excluded pattern. | |
REM 5.1 "Photo Booth Library" | |
REM 5.1 ".DS_Store" | |
REM 5.1 ".localized" | |
REM 6. Run rclone.exe config to generate a config for that machine. Move it from %USERPROFILE% to C:\Program Files\rclone | |
SET RCLONE_ROOT_FOLDER_NAME= | |
SET RCLONE_FOLDER_NAME= | |
SET RCLONE_DEST=AmazonCloudDriveBackup:%RCLONE_ROOT_FOLDER_NAME% | |
cd "C:\program files\rclone" | |
for /f "tokens=1,2 delims=;" %%X in (sources.txt) do ( | |
echo %%X | |
echo %%Y | |
rclone.exe --config="./.rclone.conf" --exclude-from "excludes.txt" -v sync "%%X" %RCLONE_DEST%/%RCLONE_FOLDER_NAME%/%%Y | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment