Backups
There are two types of data backups, each done once every three days. A maximum of ten backups are stored for each type, resulting in the oldest backup being one month old.
Global
A global backup is one which saves the state of the database and all the images.
It is stored under path/to/recipya/data/backup/global/
.
Its structure is as follows:
- recipya.db
- {uuid_1}.jpg
- {uuid_2}.jpg
- {uuid_…}.jpg
- {uuid_N}.jpg
User
A user backup is one which saves the state of a user’s data. The following is saved:
- Recipes
- Cookbooks
- Shared recipes
- Shared cookbooks
User backups are stored under path/to/recipya/data/backup/users/{userID}
.
Its structure is as follows:
- {uuid_1}.jpg
- {uuid_2}.jpg
- {uuid_…}.jpg
- {uuid_N}.jpg
- recipes.zip
- backup-deletes.sql
- backup-inserts.sql
Restore
It is possible to restore a previous backup. The instructions on how to do so depends on its type.
Global
Restoring a global backup is done only by the one who has access to the server.
- Close the application
- Navigate to
path/to/recipya/data/backup/global/
- Unzip the backup your wish to restore
- Replace
path/to/recipya/data/databases/recipya.db
with the one from the unzipped backup - If applicable, delete
path/to/recipya/data/databases/recipya.db-shm
andpath/to/recipya/data/databases/recipya.db-wal
- Delete
path/to/recipya/data/images/
- Move the
images
folder from the unzipped backup topath/to/recipya/data
- Start the application
User
Restoring a user backup is done through the web application’s user interface.
- Access the settings page
- Click the
Advanced
tab - Identify the Restore backup setting
- Select the backup date
- Click the rocket launch icon