-
Notifications
You must be signed in to change notification settings - Fork 10
Advanced Restore
If you'd like to automate the restore process, you can use the following arguments:
-i will skip the EasyEngine [re-]install and take you straight to restoring your sites.
-b will skip backing up your current sites locally [so make sure you have nothing to lose].
-d will delete any current website if the same site is to be restored from backup, [so make sure you have nothing to lose, especially when using this option together with --skip-backup].
-p y/n will automatically enable PHP [or NOT enable it] on newly restored NON wordpress sites without asking
-l y/o/n will automatically try to enable [or skip enabling] LetsEncrypt on newly restored sites.
-e "example.org, hello.world" will exclude these two sites from the restore.
1] y will automatically try to enable it, run the DNS checks, and:
- silently activate LE and proceed on success
- prompt you to check your DNS settings on failure
2] o will automatically try to enable it, run the DNS checks, and:
- silently activate LE and proceed on succcess
- silently fail and skip activating LE on failure
2] n will automatically skip enabling LE
A perfectly non-interactive valid restore command could be:
bash openspace42/raptor/tools/raptor-restore -i -b -d -p y -l o -e "example.org, hello.world"
This will:
- Skip the EasyEngine installation
- Skip backing up current local sites
- Delete any existing site if that same site has to be recreated from backup
- Enable PHP on NON wordpress sites
- Opportunistically enable LetsEncrypt on sites when the DNS records for example.org and www.example.org ALREADY point to that machine, and skip activation in case the DNS checks fail.
- Skip websites example.org and hello.world.