1
0
Dominik Pschenitschni aaa0593289 feat(docs): various improvements
- removing spaces at end of line
- fixing spelling and grammar mistakes
- making sure 'Vikunja' is spelled the same way everywhere
- prefer using editors word wrap instead of hardcoding word wrap in markdown (reason: different word wrap per editor & end of line space)
- add newline add end where missing
- remove double colon at end of headlines
- remove unnecessary indention
- make sure code blocks and headlines etc always have an empty line around
2023-04-11 16:42:59 +00:00

1.5 KiB

date, title, draft, type, menu
date title draft type menu
2019-02-12:00:00+02:00 What to backup false doc
sidebar
parent
setup

What to backup

There are two parts you need to back up: The database and attachment files.

{{< table_of_contents >}}

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:

{{< highlight bash >}} mysqldump -u -p -h > vkunja-backup.sql {{< /highlight >}}

You will be prompted for the password of the mysql user.

To restore it, simply pipe it back into the mysql command:

{{< highlight bash >}} mysql -u -p -h < vkunja-backup.sql {{< /highlight >}}

PostgreSQL

To create a backup from PostgreSQL use the pg_dump command:

{{< highlight bash >}} pg_dump -U -h > vikunja-backup.sql {{< /highlight >}}

You might be prompted for the password of the database user.

To restore it, simply pipe it back into the psql command:

{{< highlight bash >}} psql -U -h < vikunja-backup.sql {{< /highlight >}}

For more information, please visit the relevant PostgreSQL documentation.

SQLite

To back up sqllite databases, it is enough to copy the [database file]({{< ref "config.md" >}}#path) to somewhere else.