Feature: Multiple profiles in one command
Brought to you by:
edso
I've configured duply to backup my system. I needed a couple of different profiles, so now I'm running duply a couple of times for all backups.
Maybe it would be nice if you could run duply once for multiple profiles. e.g. something like:
duply root,home,data backup
Or maybe (additionally) just allowing to run all configured profiles, e.g. something like:
duply --all backup
(or maybe use the special profile name all
instead of an option or something like that). For this to work, you might need some way to specify ordering, but that can be done by simple numerical prefixes in the profile names (and listing alphabetically).
On 15.06.2020 09:57, Matthijs Kooijman wrote:
generally a nifty idea, albeit
for p in a b c; do
duply $p do_what_ever
done
will do the same and not break all backups if duply for some reason stops to work, just the one, hopefully.
all valid, but i'm still not convinced. this is all easily done around duply without but within it would raise the complexity and therefore make it more error prone.
happy hunting ..ede/duply.net
Related
Feature Requests:
#49Thanks for the fast response. You make fair points :-)
One of the reason I would like to see this is in duply is to avoid needing another shell script around duply. One of the reasons I'm using duply rather than duplicity directly is to not need a custom shell script, but just have commands I can call from a systemd service file directly. There's of course a lot of other advantages of using duply, so this is not a blocker.
Feel free to close this if you do not think this would be worth the trouble, or leave it open for future reference if you prefer.
will close it as out of scope. pretty surely you can put the above loop also as a oneliner somewhere