App backup & restore #72

Merged
3wordchant merged 3 commits from backup_restore into main 2021-01-09 11:36:51 +00:00
Owner
  1. Create an abra-commands.sh in your app repo, if there isn't one already
  2. Define abra_backup_FOO functions for each service; each function should dump a backup in $ABRA_DIR/backups/
  3. Define an abra_backup function which calls all the abra_backup_FOO functions in some kind of reasonable order
  4. Run abra app foo.info backup --all or abra app foo.info backup <service>

You can try this out with Wordpress after 7c190782

Closes #70

1. Create an `abra-commands.sh` in your app repo, if there isn't one already 2. Define `abra_backup_FOO` functions for each service; each function should dump a backup in `$ABRA_DIR/backups/` 3. Define an `abra_backup` function which calls all the `abra_backup_FOO` functions in some kind of reasonable order 4. Run `abra app foo.info backup --all` or `abra app foo.info backup <service>` You can try this out with Wordpress after [7c190782](https://git.autonomic.zone/coop-cloud/wordpress/commit/7c1907822fb294a28dc231f207e3e81a2ee21889) Closes #70
decentral1se approved these changes 2021-01-01 19:36:12 +00:00
decentral1se left a comment
Owner

Steps 1 -> 4 looks solid and consistent. Liking this emerging (|--all) convention 🚀

Steps 1 -> 4 looks solid and consistent. Liking this emerging (<service>|--all) convention 🚀
Owner

Huh, Gitea won't let me edit my review comment but it formatted out what I wanted:

Liking this emerging (|--all) convention 🚀

Huh, Gitea won't let me edit my review comment but it formatted out what I wanted: > Liking this emerging (<service>|--all) convention 🚀
3wordchant force-pushed backup_restore from ecf3cc8c75 to 546d53b93e 2021-01-01 20:21:00 +00:00 Compare
3wordchant changed title from WIP: App backup to App backup & restore 2021-01-01 20:24:51 +00:00
Author
Owner

Test restore:

abra -C app foo.info restore db ~/.abra/backups/foo.info_2021-01-01.sql.gz
abra -CU app foo.info restore app ~/.abra/backups/foo.info_wp-content_2021-01-01.gz

(Leaving off -U the first time so it'll update Wordpress stack 🔥)

Test restore: ``` abra -C app foo.info restore db ~/.abra/backups/foo.info_2021-01-01.sql.gz abra -CU app foo.info restore app ~/.abra/backups/foo.info_wp-content_2021-01-01.gz ``` (Leaving off `-U` the first time so it'll update Wordpress stack 🔥)
3wordchant force-pushed backup_restore from 546d53b93e to 5d84cef63c 2021-01-09 11:36:42 +00:00 Compare
3wordchant merged commit 1c7a51bce1 into main 2021-01-09 11:36:51 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.