sebastianfeldmann / phpbu

PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
https://phpbu.de
Other
1.3k stars 110 forks source link

Vagrantfile and setup script for easy setup of test environment #19

Open F21 opened 9 years ago

F21 commented 9 years ago

We should create a vagrantfile so that an local environment can be easily booted for testing.

We also need a setup script (for travis and vagrant) to install the servers (Elasticsearch, etc), so that we can actually test the back up process by backing up real sources.

F21 commented 9 years ago

For provisioning, we can consider using something like Ansible, which is much easier to write playbooks for, compared to shell scripts.

sebastianfeldmann commented 9 years ago

Great Idea!

sebastianfeldmann commented 9 years ago

I will create a separate repository for it.

F21 commented 9 years ago

I think a separate repository isn't required, because the vagrant file is specific to developing and testing phpbu. I think it's better to keep it in the phpbu repo, and if anyone needs to launch a vm, he can just go into the phpbu folder and do vagrant up.

This means we can also have travis run the install script used by vagrant to install elasticsearch and the other servers. Then we can do integration tests to make sure that a back up (for example XtraBackup that was compressed) extracts properly and contain all the correct files.

sebastianfeldmann commented 9 years ago

Makes sense ;)