Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purge option #116

Open
kanandaraj opened this issue Jan 2, 2016 · 4 comments
Open

purge option #116

kanandaraj opened this issue Jan 2, 2016 · 4 comments

Comments

@kanandaraj
Copy link

purge option seems not working. I tried following way
ec2-automate-backup.sh -v "vol-6d6a0527 vol-636a0112" -p
ec2-automate-backup.sh -v "vol-6d6a0527 vol-636a0112" -k 10 -r "us-west-2" -n "data" -p 10

@davfox
Copy link

davfox commented Jan 5, 2016

Did the PurgeAfterFE and PurgeAllow tags get set on the snapshots that were created? What get's output by the script when it's run?

Or perhaps you already got it working?

I've just started using this script but will need to see if purge is working for me after a couple of days have passed.

@kanandaraj
Copy link
Author

PurgeAfterFE and PurgeAllow tags were created successfully. -p option only not working.
on line number 151,purge_snapshots=false change this to true. I made it to work this way and did not use -p .

@jppunnett
Copy link
Contributor

Hi kanandaraj,

In your second cmd, try removing the 10 after the -p flag. Also remove the "data" after -n flag. (The -p and -n flags do not take parameters.) Here is the changed cmd:

ec2-automate-backup.sh -v "vol-6d6a0527 vol-636a0112" -k 10 -r "us-west-2" -n -p`

@bigtamo
Copy link

bigtamo commented May 10, 2016

hi

was trying the script and changed line 151 to purge_snapshots=true; are there any areas to edit in the script?

./ec2-automate-backup.sh -v vol-0f9e8ce6 -k 7 -n -p >> /var/log/aws.log 2>&1

this is my script output :>>

Tagging Snapshot snap-edeb7ffc with the following Tags: Key=CreatedBy,Value=ec2-automate-backup Key=Name,Value=DailyBkUp_vol-0f9e8ce
6_10-05-2016-14-46-32 Key=PurgeAfterFE,Value=1463467592 Key=PurgeAllow,Value=true
Snapshot Purging is Starting Now.

however i noticed the purging option is not working and the timestamp is in epoch.

thanks, would love any help or guidance.

Update
purge option is working now BUT it purge away all the old snapshots including the current snapshot its creating.

Please kindly assist.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants