Stouts / Stouts.backup

Ansible role to backup files, databases
MIT License
150 stars 40 forks source link

run an additional task before and after backup? #22

Open discopatrick opened 8 years ago

discopatrick commented 8 years ago

I need to put my app into maintenance mode before the backup happens, and then pull it out of maintenance mode afterwards.

I'd also like to backup both the db and directory, one after the other, in the same cron job, rather than at separate times.

Are these things possible with Stouts.backup?

reminec commented 8 years ago

I need to put my app into maintenance mode before the backup happens, and then pull it out of maintenance mode afterwards.

Check thoses templates : https://github.com/Stouts/Stouts.backup/blob/840d94b6162ea0a58e6f6ff958d3081ab682d23c/templates/pre.j2#L31 https://github.com/Stouts/Stouts.backup/blob/7934bf191284bec93d49763db346b87486ef7568/templates/post.j2#L12