Restore from Snapshot
Warning: Restoring the website from a snapshot causes destructive changes to the site's storage directory and database.
To restore the website from a snapshot, you will need to be able to log into the server, hosting this website. Refer to the server's System Administrator if you don't have access to the server (usually via SSH), or you are unfamiliar with running scripts from the CLI.
Step-by-Step Guide to Restore Snapshot
Before you start, you need to log into the server, via SSH.
// SSH into the server from your local machine.
ssh [USERNAME]@{{ip-address}}
If you're not running the website as a (systemd) service, you will need
to stop it manually before running the restore-from-snapshot.sh
script.
Otherwise, the script will stop the (systemd) service for
you. Typically, you will be running the website with a live Common Lisp
image, like SBCL, if you're not running it as a service. Entering
(larder.web:stop)
into the prompt should stop the website.
To manually restart the website, enter (larder.web:start :server :woo)
into
the Common Lisp prompt.
cd {{app-root}}scripts
./restore-from-snapshot.sh
Enter the following into the scripts prompts,
- Snapshot Directory:
{{snapshot-name}}
- Database Name:
{{db-name}}
- Sudo Password: (Refer to your server's System Administrator)