Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyEngine Backup and Restore Command #19

Open
rahul286 opened this issue Jun 8, 2018 · 3 comments
Open

EasyEngine Backup and Restore Command #19

rahul286 opened this issue Jun 8, 2018 · 3 comments

Comments

@rahul286
Copy link
Member

rahul286 commented Jun 8, 2018

This can be divided in two parts.

Create a backup

We already do this for ee update command as mentioned by @Asif2BD in EasyEngine/easyengine#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
Copy link

Asif2BD commented Jun 8, 2018

Thanks for taking note at last! <3

@rahul286 rahul286 transferred this issue from EasyEngine/easyengine Nov 29, 2018
@michacassola
Copy link

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
Copy link

Maybe VersionPress could be used for backup and staging. See here: #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants