Skip to content

Instantly share code, notes, and snippets.

View panterch's full-sized avatar

Beat Seeliger panterch

View GitHub Profile
@panterch
panterch / gist:911aa92dfda6cf1fd2c1d867378a69c0
Created February 8, 2021 10:01
Heroku offsite Backup Skript
#!/bin/bash
current_time=$(date "+%Y.%m.%d-%H.%M")
for n in $(heroku apps | grep prod | cut -d ' ' -f 1)
do
echo "backing up: $n"
heroku pg:backups:download --app $n -o /backup/heroku/$n.dump
done
echo "Finished"
# Rotation durch logrotate