Commit fc536b6f authored by Joshua Tauberer's avatar Joshua Tauberer

Merge pull request #512 from ponychicken/backup-fixes

S3 backups fail if no prefix is used
parents f4e8ee0a f96bef43
......@@ -329,6 +329,11 @@ def list_target_files(config):
bucket = p.path[1:].split('/')[0]
path = '/'.join(p.path[1:].split('/')[1:]) + '/'
# If no prefix is specified, set the path to '', otherwise boto won't list the files
if path == '/':
path = ''
if bucket == "":
raise ValueError("Enter an S3 bucket name.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment