Menu

#49 Feature: Multiple profiles in one command

wont-fix
nobody
None
5
2020-12-28
2020-06-15
No

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).

Related

Feature Requests: #49

Discussion

  • ede

    ede - 2020-06-15

    On 15.06.2020 09:57, Matthijs Kooijman wrote:


    [feature-requests:#49] https://sourceforge.net/p/ftplicity/feature-requests/49/ Feature: Multiple profiles in one command

    Status: open
    Group: Next Release (example)
    Created: Mon Jun 15, 2020 07:57 AM UTC by Matthijs Kooijman
    Last Updated: Mon Jun 15, 2020 07:57 AM UTC
    Owner: nobody

    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

    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.

    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).

    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: #49

  • Matthijs Kooijman

    Thanks 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.

     
  • ede

    ede - 2020-12-28
    • status: open --> wont-fix
     
  • ede

    ede - 2020-12-28

    will close it as out of scope. pretty surely you can put the above loop also as a oneliner somewhere

    for p in a b c; do duply $p backup; done
    
     

Log in to post a comment.