README.md in preserve-rds-snapshot-0.3.0 vs README.md in preserve-rds-snapshot-0.3.1
- old
+ new
@@ -8,14 +8,16 @@
* describe_db_instances
* describe_db_snapshots
* copy_db_snapshot
* delete_db_snapshots
* list_tags_for_resources
+ * add_tags_to_resources
+ * remove_tags_from_resources
* EC2
* describe_security_groups
-NOTE: describe_security_groups is required to get the AWS Account Number. You can use the '--aws-account-number' option instead.
+NOTE: describe_security_groups is required to get the AWS Account Number. You can use the `--aws-account-number` option instead.
## Installation
Add this line to your application's Gemfile:
@@ -35,10 +37,11 @@
```
Commands:
preserve-rds-snapshot copy -o src -t target # copy snapshot
preserve-rds-snapshot help [COMMAND] # Describe available commands or one specific command
+ preserve-rds-snapshot init # initialize instance
preserve-rds-snapshot latest # show latest snapshot
preserve-rds-snapshot list # Show list of RDS Snapshots
preserve-rds-snapshot preserve # copy automated snapshot to manual
Options:
@@ -46,19 +49,28 @@
k, [--access-key-id=ACCESS_KEY_ID] # AWS access key id.
s, [--secret-access-key=SECRET_ACCESS_KEY] # AWS secret access key.
r, [--region=REGION] # AWS region.
[--shared-credentials-path=SHARED_CREDENTIALS_PATH] # AWS shared credentials path.
i, [--instance=INSTANCE] # target DB Instance
-
-Options:
- p, [--profile=PROFILE] # Load credentials by profile name from shared credentials file.
- k, [--access-key-id=ACCESS_KEY_ID] # AWS access key id.
- s, [--secret-access-key=SECRET_ACCESS_KEY] # AWS secret access key.
- r, [--region=REGION] # AWS region.
- [--shared-credentials-path=SHARED_CREDENTIALS_PATH] # AWS shared credentials path.
- i, [--instance=INSTANCE] # target DB Instance
+ n, [--aws-account-number=AWS_ACCOUNT_NUMBER] # AWS Account Number (ex: 012345678901)
+ [--dry-run], [--no-dry-run] # show only, don't modify
```
+### initialize instance
+
+```
+$ preserve-rds-snapshot init
+```
+
+init subcommand add 'preserve-rds-snapshot' tag to RDS instance.
+
+### preserve snapshot
+
+```
+$ preserve-rds-snapshot preserve
+```
+
+preserve subcommand copy automated snapshot to manual snapshot.
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec preserve-rds-snapshot` to use the code located in this directory, ignoring other installed copies of this gem.