From 4829c899400544ad27cacfb7d19b40988302a413 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 13 Nov 2021 18:00:49 +0100 Subject: [PATCH] docs: update backup instructions --- docs/content/doc/setup/backups.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/content/doc/setup/backups.md b/docs/content/doc/setup/backups.md index b901dd68..296c5e95 100644 --- a/docs/content/doc/setup/backups.md +++ b/docs/content/doc/setup/backups.md @@ -10,12 +10,17 @@ menu: # What to backup -Vikunja does not store any data outside of the database. -So, all you need to backup are the contents of that database and maybe the config file. +There are two parts you need to back up: The database and attachment files. {{< table_of_contents >}} -## MySQL +## Files + +To back up attachments and other files, it is enough to copy them [from the attachments folder]({{< ref "config.md" >}}#basepath) to some other place. + +## Database + +### MySQL To create a backup from mysql use the `mysqldump` command: @@ -31,7 +36,7 @@ To restore it, simply pipe it back into the `mysql` command: mysql -u -p -h < vkunja-backup.sql {{< /highlight >}} -## PostgreSQL +### PostgreSQL To create a backup from PostgreSQL use the `pg_dump` command: @@ -49,6 +54,6 @@ psql -U -h < vikunja-backup.sql For more information, please visit the [relevant PostgreSQL documentation](https://www.postgresql.org/docs/12/backup-dump.html). -## SQLite +### SQLite -To backup sqllite databases, it is enough to copy the database elsewhere. +To back up sqllite databases, it is enough to copy the [database file]({{< ref "config.md" >}}#path) to somwhere else.