multi backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
So the usecase for that is that I have a substantial amount of data to backup so it is not an option to make a local copy first and then sync it with the remote storage.
The attached backend accepts an url in the form multi:/
Uploads are done concurrently.
The code has reached the "works-for-me" level, but if you are interested in including it in duplicity I will continue to work on it.
There are some problems that need to be addressed:
- the url scheme is ugly I'm open to suggestions.
- passwords will be leaked by ps
- currently it is possible to have multiple concurrent put operations on the same backend if you have multiple <ssh://
- downloads will always use the first backend in the URL (i'm not sure if this is a problem).
- there should be an utility to check if all backends are in sync and synchronize them if needed.
p.s. Python is not my native language so if you see something that is not very pythonish or plain stupid don't hesitate to tell me :)
Changed in duplicity: | |
status: | New → Fix Released |
I have been looking for something like this! It would be really nice to have this patch as a part of the stable version. It would save a lot of CPU time for many of my machines.
Here are my comments:
- the url scheme is ugly I'm open to suggestions.
I would prefer to split all destinations: host1/dest scp://user@ host2/dest scp://user@ host3/dest
$ duplicity full /dir scp://user@
- passwords will be leaked by ps
Use scp without password (use ssh keys instead). Best solution is to install rssh (http:// rssh.sourceforg e.net/) on the destination machine to chroot the user and allow him to login only with the ssh key (no password).
- currently it is possible to have multiple concurrent put operations on the same backend if you have multiple <ssh:// user:pass@ host//path> for example.
That's OK I think.
- downloads will always use the first backend in the URL (i'm not sure if this is a problem).
I would be good to disable somehow the support of multi:// in the case of download. Show error message and exit or something like that.
- there should be an utility to check if all backends are in sync and synchronize them if needed.
This is not really necessary if you are using the multi:// patch.