1.3 KiB
1.3 KiB
server-toolset
many-rsync
rsync a set of folders to the remote in parallel.
config
use TOML (preferred) or JSON.
# parallel rsync configuration
# remote_folder: full rsync-compatible remote path
# don't forget the trailing slash!
# /Users/foo/target/
# foo@bar:/home/foo/target/
remote_folder = ""
# local_folders: bare folder names (resolved relative to $HOME)
local_folders = ["a"]
# n: max parallel rsync processes (default: 2)
n = 2
# log_level: pick from DEBUG | INFO | WARNING | ERROR | CRITICAL
log_level = "INFO"
# use to pass arguments to the rsync binary running locally
# see rsync help/manpage for details
[rsync_parameters]
# --rsync-path
rsync_path = "/usr/bin/rsync"
# --exclude-from
exclude_from = ".rsync-exclude.txt"
remote_folder: rsync-compatible full path to the target folder in remote. "remote" here means that it's the target of the operation, and could still reside on the local system.- do not forget to use the trailing slash!
local_folders: each folder to be copied overn: how many parallel rsync routines to be spawnedlog_level: self explanatoryrsync_parameters: exposes local rsync binary's optionsrsync_path: specify the rsync to run on remote machineexclude_from: read exclude patterns from FILE