A simple bash script wrapper for the rsync command
bash
(or any other bash-compatible shell;sh
,dash
, etc. are not supported)dasel
(https://github.com/TomWright/dasel)jq
(https://github.com/stedolan/jq)rsync
screen
envsubst
(optional, a part ofgettext
package)
$ ./rsync_offsite_backup.sh [OPTIONS]
Argument | Description |
---|---|
-c string |
Path to config file for this job |
-d |
Dry run |
-l |
Show list of the currently running jobs and exit |
-n string |
Custom name of the job |
-h |
Shows help |
$ ./rsync_offsite_backup.sh -c path/to/config.yml [-d] [-n]
$ ./rsync_offsite_backup.sh -l
$ ./rsync_offsite_backup.sh -r