chr4-cookbooks / duplicity_ng

Chef cookbook to install duplicity and manage duplicity backup cronjobs
Other
3 stars 5 forks source link

Restore question #32

Closed merqlove closed 9 years ago

merqlove commented 9 years ago

Sometimes we use restore option, for example we need to restore some server or when we moving to another stack. Do you know best way to restore with minimum of cat, export PASSPHRASE and so on operations?

chr4 commented 9 years ago

For this reason, I created the confdir attribute. The files placed there can be sourced and then DUPLICITY_ARGUMENTS can be used.

Example for Ubuntu (This should probably go to the README, too)

source /etc/defaults/duplicity-test
duplicity collection-status ${DUPLICITY_ARGUMENTS[@]} 

The same works for all other duplicity commands (restore, etc). Does that help?

merqlove commented 9 years ago

Thanks for info. Yeah, this is good way.