Skip to content

A simple Ansible playbook for backing up databases and folders tested for Bluehost but should work for any kind shared hosting. Ideal for triggering with a cron.

License

Notifications You must be signed in to change notification settings

manubalasree/ansible-bluehost-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible - Remote Bluehost backups

A simple Ansible playbook for remotely backing up databases and folders tested for Bluehost but should work for any kind shared hosting or server. Ideal for triggering with a cron.

Requirements

In the source machine:

  • Ansible

In the remote machine

  • ssh access
  • mysql-python

Instructions

  • Configure it by modifying the vars.yml file and hosts file
  • Run it: ansible-playbook -i hosts bluehostBackup.yml

You can filter by tags:

  • databases To backup only databases
  • folders To backup only folders

Optionally create a cron job like this:

Database backups at 9pm every day

0 21 * * * cd /path/to/playbook; ansible-playbook -i hosts bluehostBackup.yml --tags databases

Folders backups at 9pm every Sunday

0 21 * * 7 cd /path/to/playbook; ansible-playbook -i hosts bluehostBackup.yml --tags folders

About

A simple Ansible playbook for backing up databases and folders tested for Bluehost but should work for any kind shared hosting. Ideal for triggering with a cron.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published