Export all existing configurations

#1

Hi everyone!
How do I export all backup configurations that exist in my duplicaty installation? I’ve got plenty of them and it may be not very comfortable to click every configuration and export it and save to a file. Are there any ways of mass exporting?

1 Like

#2

As far as I know there’s no way to bulk export jobs - they need to be done individually.

On top of that, I’m not sure you can export global settings so if your job “relies” on global settings (say, for email notifications) you may need to make note of those separately.

Note that a bulk export probably wouldn’t be too difficult to add if somebody wanted to give it a try…

1 Like

#3

Indeed, it only relies on 2 API calls. I should give it a shot when I get some time :slight_smile: Or maybe just only implement it in my CLI tool so people have to use that :wink:

2 Likes

#4

I added the option to export all configuration at once using the --all parameter. It will dump each config into a timestamped yaml or json file named after the backup, so you can use it as a pre backup script to always have an up to date copy of your backup configs. It works in conjunction with --output-path so you can just export it wherever you want.

1 Like

Backing up Duplicati configs for DR
#5

That’s great!

So now that you’ve given us a cool function but tied it to your cool CLI tool, all we have to do is follow these installation instructions and set a pre-backup script to run duc export backup --all --output=JSON --output-path=[folder included in backup]?

I hate to ask this, but is there an option to NOT have the timestamp so we can rely on Dupliacti for versioning? (Ideally it could be included as part of the dindex file and more easily accessed for system recovery than something like Entire configuration backup)

Oh - and in the Exporting Backups description you might want to mention it only does the JOB settings, not any global ones - just like Duplicati’s export. :wink:

0 Likes

#6

I’ll can fix that with a parameter :slight_smile:

This is may be a little more work. Might be next up to add an option to export all global options, and then a flag on the backup export :thinking:

I think it would be cool to also add this to the Duplicati server itself, but it kinda has to be more worked into the creation of the index and obviously some logic to extract it (since it then won’t be recoverable from the restore page).

0 Likes