1
0
mirror of https://github.com/etesync/server synced 2024-12-01 04:58:08 +00:00

Add intial backup instructions

Pierre-Alain TORET 2020-03-30 17:50:39 +02:00
parent 8be46f3bf5
commit a61100f89e

16
Backups.md Normal file

@ -0,0 +1,16 @@
Running your own server is cool, but having backups is a must in that case.
Here is how to do it for the EteSync server, but the procedure depends on your storage backend
## SQLite3 (with the default name given by EteSync)
`sqlite3 /path/to/etesync/db.sq3 ".backup '/path/to/backups/backup_db.sq3'`
If you want more info https://stackoverflow.com/questions/25675314/how-to-backup-sqlite-database or check the SQLite3 documentation
## PostgreSQL
Basically just dump your database using pg_dump (here we assume the database is called etesync)
`pg_dump etesync > /path/to/backups/etesync.dump`
If you want more info https://www.postgresql.org/docs/current/backup.html