KenKundert / emborg

Interactive command line interface to Borg Backup
GNU General Public License v3.0
94 stars 8 forks source link

Give the option to run all configurations at once #14

Closed stefanobartoletti closed 4 years ago

stefanobartoletti commented 4 years ago

Given multiple configurations on ~/.config/emborg/, let's call them home, lamp, data, and so on, I think it would be helpful to have an option to run all found configs with a single command.

So, instead of running emborg -c home && emborg -c lamp && emborg -c data, maybe one could run emborg -a or emborg --all, or emborg or something similar.

KenKundert commented 4 years ago

Give me some time. Let me see if there are any undesirable consequences of doing that.

It probably only makes sense for the create command, and perhaps the overdue command. Right?

stefanobartoletti commented 4 years ago

Thank you.

Yes, I was mainly referring to the create command.

Mounting, restoring, and other actions on existing archives should of course be done on a single repository/archive basis.

KenKundert commented 4 years ago

I have implemented composite configurations that allow you to run an emborg command on several configurations at once. See https://emborg.readthedocs.io/en/latest/configuring.html#composite-configurations I just made a fair amount of changes, so I will probably let the code sit for a while before I update pypi.