EasyEngine / feature-requests

A repo to track all feature requests on EasyEngine project using issue tracker.
5 stars 2 forks source link

EasyEngine Backup and Restore Command #19

Open rahul286 opened 6 years ago

rahul286 commented 6 years ago

This can be divided in two parts.

Create a backup

We already do this for ee update command as mentioned by @asif2bd in https://github.com/EasyEngine/easyengine/issues/704.

The database dump can be as simple as wp db export. Then tar backuphtdocs.

Transfer a backup

  1. We already test duplicity - https://easyengine.io/tutorials/backups/duplicity-amazon-s3/
  2. Use https://rclone.org/ - not yet tested but seems good

EE Commands

Something like:

# instant backup/restore
ee backup example.com [--db|--full|--files] [--path=/to/backup]
ee restore example.com [--db|--full|--files] [--path=/from/backup]

## backup config
ee backup config set-remote --type=s3 --s3key=value-1 --s3secret=value-2
ee backup config get-remote

ee backup config set-interval 

References

https://news.ycombinator.com/item?id=12398829 https://gist.github.com/hofmannsven/f68ba69b5d540c6d5c83

Asif2BD commented 6 years ago

Thanks for taking note at last! <3

michacassola commented 5 years ago

What about Restic with rclone? Restic would do the heavy lifting and rclone can be used with it to access Google Drive for example which is very important to me.

Would also be nice to get an email when the backup is done or failed.

https://restic.net/ https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#other-services-via-rclone

michacassola commented 5 years ago

Maybe VersionPress could be used for backup and staging. See here: https://github.com/EasyEngine/feature-requests/issues/22