Switch storage from S3 to local drive

Asked by Charles F. Dingman

S3 storage is too expensive for me at present, so I'd like to switch to backing up to a local drive. Can I do this without losing the historical versions that deja-dup has created? In other words, can I download everything from my S3 bucket to a local drive and then continue backups to that new location. If so, can I do this within deja-dup or do I need another tool or method?

Question information

Language:
English Edit question
Status:
Answered
For:
Déjà Dup Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Terry (mterry) said :
#1

You'll need another tool. Deja Dup doesn't do that itself.

I believe Amazon S3 has a web console that lets you upload/download files. Maybe that would work? Sorry, I haven't had to do that myself yet.

Revision history for this message
Charles F. Dingman (charles-dingman) said :
#2

Thanks, but I'm still unsure how to proceed. Assuming that I can download all of the files to a new location, would I be able to simply point deja-dup to that location as a new backup location, and have it continue updating the backups, such that I could still revert to an older version using the deja-dup interface? Or, would I need to do something out of the norm to make sure that deja-dup could "pick up where it left off" with the files in a different place - i.e. on a USB drive instead of the S3 "cloud"?

As far as the download itself is concerned, I was a little puzzled by the Amazon console interface, since I could see an option to upload but not to download. I will take a harder look and seek help from Amazon if I can't work that part out.

Thanks again.

Revision history for this message
Michael Terry (mterry) said :
#3

OK, I've seen someone talk about doing so, but I've never done it myself.

http://blog.linux2go.dk/2011/01/20/moving-duplicity-and-hence-deja-dup-backups/

Revision history for this message
Charles F. Dingman (charles-dingman) said :
#4

Thanks. The methodology in the article that you linked to requires calculating the hash of the local directory name to which the backups would be relocated and then creating a new directory in .cache/deja dup with that name -- the reverse of what the blog post author was doing. Would that local directory URI be (for example) '/media/usbdrive/deja-dup-backup' or 'file://media/usbdrive/deja-dup-backup'? Obviously these would produce different md5sums. Or are both my guesses wrong? Maybe the way to do this is to set up the local backup, find the new hash folder name in ~/.cache/deja dup, and then copy the manifest and signature files from the s3 cache directory to the new one?

Revision history for this message
Michael Terry (mterry) said :
#5

The local directory URI should be "file:///media/usbdrive/deja-dup-backup" (three slashes)

Revision history for this message
Charles F. Dingman (charles-dingman) said :
#6

Thanks -- glad I asked! I will try this as soon as time permits and perhaps then will be able to click the "problem solved" button.

Can you help with this problem?

Provide an answer of your own, or ask Charles F. Dingman for more information if necessary.

To post a message you must log in.