Add a new backup script
This commit adds a backup script to backup all instances regularly. Fixes #11.
This commit is contained in:
parent
65a42f61e9
commit
21bd4f22c3
7 changed files with 115 additions and 17 deletions
27
README.md
27
README.md
|
|
@ -204,6 +204,33 @@ To list all instances, the following command can be used:
|
|||
sudo bash /distillery/ls.sh
|
||||
```
|
||||
|
||||
## Backups -- 'backup.sh'
|
||||
|
||||
This project comes with a backup script.
|
||||
To make a backup, run:
|
||||
|
||||
```bash
|
||||
sudo bash /distillery/backup.sh
|
||||
```
|
||||
|
||||
Backups are stored in the `backups/final` directory.
|
||||
They contain:
|
||||
- a filesystem backup of all instances
|
||||
- a complete backup of the SQL database
|
||||
- nquads of all the GraphDB repositories
|
||||
- a backup of the config file
|
||||
|
||||
Files are `.tar.gz`ipped.
|
||||
By default, backups are kept for up to thirty days, after which they are removed.
|
||||
|
||||
This script does not automatically provision a cronjob.
|
||||
An example job to e.g. run a backup every saturday at 9:00 am is:
|
||||
|
||||
```
|
||||
MAILTO="some-admin-email@example.com"
|
||||
0 9 * * 6 /bin/bash /distillery/backup.sh
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This project and associated files in this repository are licensed as follows:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue