]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - doc/md/Backup-and-restore.md
Doc: add PHP 7.4 and 8.0 as supported version
[github/shaarli/Shaarli.git] / doc / md / Backup-and-restore.md
CommitLineData
91a21c27 1## Backup and restore
2
3All data and [configuration](Shaarli-configuration.md) is kept in the `data` directory. Backup this directory:
4
5```bash
6rsync -avzP my.server.com:/var/www/shaarli.mydomain.org/data ~/backups/shaarli-data-$(date +%Y-%m-%d_%H%M)
7```
8
9It is strongly recommended to do periodic, automatic backups to a seperate machine. You can automate the command above using a cron job or full-featured backup solutions such as [rsnapshot](https://rsnapshot.org/)
10
11To restore a backup, simply put back the `data/` directory in place, owerwriting any existing files.