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

S3 file age - Should ignore the bucket folder itself, and only look for objects beneath it #2

Open
ianbamforth opened this issue Nov 4, 2015 · 1 comment
Assignees

Comments

@ianbamforth
Copy link

The script does not ignore the bucket folder itself, so if the bucket is quite new then the check will pass.

For example, create a bucket to hold weekly backups. The bucket is initially empty, but has an age of zero. Checking --minfileage 168 (i.e. 7 x 24 hours) will return OK for the first 168 hours, then fail (assuming you haven't written anything).

Note that as a workaround you can use wildcards, e.g. --bucketfolder 'hourly/.+', i.e. insist on at least one character after the slash.

@matt448 matt448 self-assigned this Nov 4, 2015
@matt448
Copy link
Owner

matt448 commented Nov 6, 2015

Ah, interesting. I'm setting up a bucket to test this.

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

2 participants