chore: add 2 tools to backup and restore DB

This commit is contained in:
Edouard Vanbelle
2026-09-02 20:03:41 +02:00
parent e42c9c7e8b
commit 569d3ec526
2 changed files with 93 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
NOW="$(date '+%Y-%m-%d %H:%M:%S')"
pg_dump postgres://postgres:postgres@localhost:5432/oxicloud -F c --disable-triggers > "backup.${NOW}.dump"