14 lines
251 B
Bash
14 lines
251 B
Bash
#!/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
|
|
}
|