- Take regular automatic backups and push the files to S3 compatible cloud. Setup backup and push with cronjobs
- Use regular cron for single machine installs
- Use swarm-cronjob for docker swarm
- Use Kubernetes CronJob
- It makes it easy to transfer data from cloud to any new deployment.
- They are just site operations that can be manually pipelined as per need.
- Remember to restore encryption keys and other custom configuration from
site_config.json
. - Steps to move deployment:
- Take backup
- Push backup to cloud
- Create new deployment type anywhere
- Restore backup from cloud
- Restore
site_config.json
from cloud