$ dr-backup --help
usage: dr_backup [-h] (-b | -r) [-o OUTPUT] [-f] [-s SOURCE]
[--disable-ssl-verification] [-u USERNAME] [-p PASSWORD]
registry_url
positional arguments:
registry_url
optional arguments:
-h, --help show this help message and exit
-b, --backup
-r, --restore
--disable-ssl-verification
disable SSL verification (default: False)
-u USERNAME, --username USERNAME
username to authenticate against registry, provide
password with -p or you'll be prompted
-p PASSWORD, --password PASSWORD
password to authenticate against registry
backup:
-o OUTPUT, --output OUTPUT
path the backup will be saved to (default:
./${registry_url}_${timestamp})
-f, --force force overwrite of existing backup file (default:
False)
restore:
-s SOURCE, --source SOURCE
path pointing to the backup file we will restore from
$ dr-backup --backup --output my-old-registry.tar https://my-old-registry.com
[3/3] wordpress [1/1] latest
$ dr-backup --restore --source my-old-registry.tar https://my-new-registry.com
[3/3] wordpress [1/1] latest