Documenting singularity role
This commit is contained in:
13
roles/Singularity/files/test-backup.bash
Normal file
13
roles/Singularity/files/test-backup.bash
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
backupfile="$HOME"/tt-rss.sql
|
||||
|
||||
function test-backup() {
|
||||
sudo -u postgres pg_dump -d ttrss > "$backupfile"
|
||||
}
|
||||
|
||||
function test-restore() {
|
||||
./delete-db.bash
|
||||
./create-db.bash
|
||||
cat "$backupfile" | sudo -u postgres psql -d ttrss
|
||||
}
|
||||
Reference in New Issue
Block a user