X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fmd%2FBackup-and-restore.md;fp=doc%2Fmd%2FBackup-and-restore.md;h=e7e2775c6891c914d10a90c7106366e0b7690e65;hb=91a21c272960889afd4eaa431a3d29b7785b6efc;hp=0000000000000000000000000000000000000000;hpb=6128ab6a55430a2b705be31ff417c0c552a0db1f;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/md/Backup-and-restore.md b/doc/md/Backup-and-restore.md new file mode 100644 index 00000000..e7e2775c --- /dev/null +++ b/doc/md/Backup-and-restore.md @@ -0,0 +1,11 @@ +## Backup and restore + +All data and [configuration](Shaarli-configuration.md) is kept in the `data` directory. Backup this directory: + +```bash +rsync -avzP my.server.com:/var/www/shaarli.mydomain.org/data ~/backups/shaarli-data-$(date +%Y-%m-%d_%H%M) +``` + +It 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/) + +To restore a backup, simply put back the `data/` directory in place, owerwriting any existing files. \ No newline at end of file