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 Rotation not working in 2.7? #19

Open
markdwhite opened this issue May 31, 2010 · 2 comments
Open

S3 Rotation not working in 2.7? #19

markdwhite opened this issue May 31, 2010 · 2 comments

Comments

@markdwhite
Copy link

Just testing astrails-safe with some very simple configs, and have managed to get 7 svnbackups on S3 with the following settings (only 5 in local). Am I missing something, or is this not quite right?

safe do
local :path => "/backups/:kind/:id"

keep do
local 5
s3 5
end

svndump do
repo :testrepo do
repo_path "/home/mark/testrepo"
end
end

s3 do
key "............"
secret "............"
bucket "........"
path ""
end

end

Many thanks,

Mark...

@markdwhite
Copy link
Author

Now using a path in s3 do and it's working. So this is closed.

@invalidusrname
Copy link

A bump I ran to when using $HOME, was causing a prefix of '/' with S3. Apparently the prefix messes things up and these files won't show as listed on S3, causing the deleting of old backups not to happen

Incorrect:

safe do
  local :path => "#{HOME}/backup/"

  s3 do
    key '...'
    secret '...'
    bucket 'my.bucket'
  end
end

Correct:

safe do
  local :path => "#{HOME}/backup/"

  s3 do
    key '...'
    secret '...'
    bucket 'my.bucket'
    path '/home/username/backup/'
  end
end

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