S3 Backup and restore utility
Requires Python >= 3.0 and AWS CLI.
usage: s3.backup.restore.py [-h] --run {backup,restore} --table-name
TABLE_NAME [--archive ARCHIVE] --profile
PROFILE [--timeout TIMEOUT]
[--region-name REGION_NAME]
[--with-endpoint WITH_ENDPOINT]
s3 Backup Restore Tool
optional arguments:
-h, --help show this help message and exit
--run {backup,restore}
Specify the operation to perform
--table-name TABLE_NAME
Provide table name to backup/restore
--archive ARCHIVE When operating in restore mode: absolute path to zip
file to restore
--profile PROFILE AWS profile authorization
--timeout TIMEOUT Timeout
--region-name REGION_NAME
AWS region name
--with-endpoint WITH_ENDPOINT
Optional: Dynamodb URL endpoint
python s3.backup.restore.py --run backup --bucket-name 001 --profile default
python s3.backup.restore.py --run backup --bucket-name 001 --with-endpoint http://localhost:4572 --profile default
python s3.backup.restore.py --run restore --archive foo.zip --bucket-name 001 --profile default