feat: create backup-schedule-cat subcommand

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-23 14:39:21 -04:00
parent 965ef3ae22
commit 43e7150365
3 changed files with 38 additions and 2 deletions

View File

@@ -21,9 +21,10 @@ mongo:backup <name> <bucket> (--use-iam) Create a backup of the mongo service to
mongo:backup-auth <name> <aws_access_key_id> <aws_secret_access_key> (<aws_default_region>) (<aws_signature_version>) (<endpoint_url>) Sets up authentication for backups on the mongo service
mongo:backup-deauth <name> Removes backup authentication for the mongo service
mongo:backup-schedule <name> <schedule> <bucket> Schedules a backup of the mongo service
mongo:backup-set-encryption <name> <encryption_key>, Sets up GPG encryption for future backups of the mongo service
mongo:backup-schedule-cat <name> Cat the contents of the configured backup cronfile for the service
mongo:backup-set-encryption <name> <encryption_key> Sets up GPG encryption for future backups of the mongo service
mongo:backup-unschedule <name> Unschedules the backup of the mongo service
mongo:backup-unset-encryption <name>, Removes backup encryption for future backups of the mongo service
mongo:backup-unset-encryption <name> Removes backup encryption for future backups of the mongo service
mongo:clone <name> <new-name> Create container <new-name> then copy data from <name> into <new-name>
mongo:connect <name> Connect via telnet to a mongo service
mongo:connect-admin <name> Connect via telnet to a mongo service as admin user
@@ -214,6 +215,9 @@ dokku mongo:backup lolipop BUCKET_NAME
# CRON_SCHEDULE is a crontab expression, eg. "0 3 * * *" for each day at 3am
dokku mongo:backup-schedule lolipop CRON_SCHEDULE BUCKET_NAME
# cat the contents of the configured backup cronfile for the service
dokku mongo:backup-schedule-cat lolipop
# remove the scheduled backup from cron
dokku mongo:backup-unschedule lolipop
```