GithubHelp home page GithubHelp logo

Comments (6)

modasir avatar modasir commented on June 11, 2024

Snapshots taken by ec2-automate-backup will be eligible for purging after the following date (the purge after date given in seconds from epoch): 1458239434.
Tagging Snapshot snap-b9fffbe6 with the following Tags: Key=CreatedBy,Value=ec2-automate-backup Key=InitiatingHost,Value='ip-10-220-5-100' Key=PurgeAfterFE,Value=1458239434 Key=PurgeAllow,Value=true
Tagging Snapshot snap-8c457dc9 with the following Tags: Key=CreatedBy,Value=ec2-automate-backup Key=InitiatingHost,Value='ip-10-220-5-100' Key=PurgeAfterFE,Value=1458239434 Key=PurgeAllow,Value=true

from aws-missing-tools.

modasir avatar modasir commented on June 11, 2024

Not sure what we are missing to purge...We even tried the following

** ./ec2-automate-backup -r "us-west-2" -s tag -t "Backup,Values=true" -k 1 -p -h > /data/scripts/ec2-automate-backup.log
**

from aws-missing-tools.

jppunnett avatar jppunnett commented on June 11, 2024

Your first sample script did not contain the -p flag, but I see that you included it in second sample script. What does the ec2-automate-backup.log contain after you run the second script?

from aws-missing-tools.

modasir avatar modasir commented on June 11, 2024

Thanks for the response.

If you run the script this way it seems to work via cron.

/data/scripts/ec2-automate-backup.sh -r "us-west-2" -s tag -t "Backup,Values=true" -k 5 -p -h > /data/scripts/ec2-automate-backup.log

This deleted shapshots from March 24th. I do have snapshots that are from March 8th - March 16th that didn't get deleted. Any ideas

The following are the tags for the ones that didn't get deleted.
CreatedBy ec2-automate-backup
PurgeAfterFE 1460166301
PurgeAllow true
##################################################################################
Here is the log output.

Snapshots taken by ec2-automate-backup.sh will be eligible for purging after the following date (the purge after date given in seconds from epoch): 1459706089.
Tagging Snapshot snap-a152e3ff with the following Tags: Key=CreatedBy,Value=ec2-automate-backup Key=InitiatingHost,Value='ip-10-220-5-100' Key=PurgeAfterFE,Value=1459706089 Key=PurgeAllow,Value=true
Tagging Snapshot snap-cfdf7d95 with the following Tags: Key=CreatedBy,Value=ec2-automate-backup Key=InitiatingHost,Value='ip-10-220-5-100' Key=PurgeAfterFE,Value=1459706089 Key=PurgeAllow,Value=true
Snapshot Purging is Starting Now.
Snapshot "snap-248a717c" with the PurgeAfterFE date of "1459238401" will be deleted.
Snapshot "snap-607c223f" with the PurgeAfterFE date of "1459238401" will be deleted.

from aws-missing-tools.

jppunnett avatar jppunnett commented on June 11, 2024

Glad you got things working.

For the snapshots that were not deleted, they won't be deleted until after 9 April 2016. The value 1460166301 assigned to PurgeAfterFE is a UNIX time stamp and it represents 9 April 2016.

from aws-missing-tools.

modasir avatar modasir commented on June 11, 2024

Thanks!

from aws-missing-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.