feat: backup script
This commit is contained in:
4
backup.bash
Normal file
4
backup.bash
Normal file
@ -0,0 +1,4 @@
|
||||
name=haystack-db-dump-$(date "+%Y-%m-%d").sql
|
||||
pg_dump haystack > $name
|
||||
rsync -avH $name zh3586@zh3586.rsync.net:Backups/Haystack/
|
||||
rm $name
|
Reference in New Issue
Block a user