name: backup help: backup/mirror a directory using rdiff or rsync version: 0.1.0 environment_variables: - name: BACKUP_EXCLUDE help: path to file of excludes - name: BACKUP_INCLUDE help: path to directory of includes args: - name: source # required: 1 help: source directory to be backed up, default is $PWD - name: target help: "target directory for backup" flags: - long: --host short: -h arg: thost help: host on remote to target to receive backup - long: --shost arg: shost help: remote to host of source - long: --user short: -u arg: tuser help: user on remote host - long: --suser arg: suser help: remote user on source host - long: --sshcfg arg: sshcfg help: path to sshcfg file - long: --options short : -o arg: options help: rdiff options - long: --include_file short : -i arg: options help: rdiff options - long: --exclude_file short : -e arg: options help: rdiff options - long: --mirror short: -m help: make a mirror copy instead of a differential snapshot - long: --sudo short: -s help: run the backup as sudo - long: --no-dir short: -n help: don't make a directory of same name within the target, merge sub directories examples: - backup -m -n -h thost --shost shost -u tuser --suser suser . /target/dir