diff --git a/docs/content/doc/setup/backups.md b/docs/content/doc/setup/backups.md index b901dd68f6..296c5e95cf 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.