Add intial backup instructions

master
Pierre-Alain TORET 4 years ago
parent 8be46f3bf5
commit a61100f89e

@ -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
Loading…
Cancel
Save