Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
285f1d6d
Verified
Commit
285f1d6d
authored
May 31, 2021
by
les
Browse files
backup docs
parent
91311b49
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/backup.md
0 → 100644
View file @
285f1d6d
---
layout
:
default
title
:
Backup
permalink
:
/backup
nav_order
:
5
---
## Backup
The following commands should be valid for every setup (docker/debian/sqlite/postgres) but check your installation directory first.
This includes database, configuration, custom user locales, media, images and thumbnails.
```
bash
cd
/opt/gancio/
# or /home/gancio
tar
--ignore-failed-read
-czf
gancio-
$(
date
+%Y-%m-%d-%H%M%S
)
-backup
.tgz
\
config.json
\
uploads
\
user_locale
\
db.sqlite
\
postgres
\
data
```
> info "Automatic backup"
> To periodically backup your data you should probably use something like [restic](https://restic.net) or [borg](https://www.borgbackup.org/)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment