tohuwabohu / puppet-duplicity

Puppet module to manage backups based on duplicity.
Apache License 2.0
8 stars 33 forks source link

Customizable Duply Command Batch #31

Closed rvalle closed 7 years ago

rvalle commented 7 years ago

The command batch used for cron backup is:

cleanup_backup_purgeFull

This batch is expanded to:

cleanup_pre_bkp_post_purgeFull

Each of this is a duply command, and the _ is a "neutral" separator.

Duply defines other separators, such as "+" which means executing the next step only if the previous succeeded.

In our particular use case it is desirable that the backup is aborted if the pre script fails. We currently use pre to create a snapshot of a LVM volme, which is then mounted before backup. If this step fails we currently end up with the backup of the empty mount-point.

Currently this duply command batch is hard-coded.

It would be desirable that could be, optionally, customized when defining the profile.

tohuwabohu commented 7 years ago

Released as 4.2.0 to the forge.