Skip to content

Commit

Permalink
yeet: ghost
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulius Juzenas committed Feb 13, 2025
1 parent 987c6ab commit f8d664f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions ghost/Dockerfile

This file was deleted.

Empty file removed ghost/data/.gitkeep
Empty file.
2 changes: 0 additions & 2 deletions nettverksdagen
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ backup() {
local backup_time="$(date --rfc-3339='seconds' | sed 's/\ /_/g')"
local backup_dir="$backup_root_dir/$backup_time"
rsync -a fileserver/uploads "$backup_dir" &> /dev/null
rsync -a ghost/data "$backup_dir" &> /dev/null
docker exec postgres pg_dumpall -c -U postgres > "$backup_dir/api_db.sql"
echo "$backup_time"
}
Expand All @@ -16,7 +15,6 @@ restore() {
local backup_time="$1"
local backup_dir="$backup_root_dir/$backup_time"
rsync -a "$backup_dir/uploads" fileserver &> /dev/null
rsync -a "$backup_dir/data" ghost &> /dev/null
docker exec -i postgres psql -q -U postgres < "$backup_dir/api_db.sql" &> /dev/null
echo "$backup_time"
}
Expand Down

0 comments on commit f8d664f

Please sign in to comment.