summaryrefslogtreecommitdiff
path: root/backup-pg
diff options
context:
space:
mode:
Diffstat (limited to 'backup-pg')
-rwxr-xr-xbackup-pg2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup-pg b/backup-pg
index ef4d257..18c762c 100755
--- a/backup-pg
+++ b/backup-pg
@@ -74,7 +74,7 @@ while read db; do
$SUDO pg_dump $PORT --create --format=p "$db" > "$file"
nice pigz --no-name --no-time -- "$file"
- digest=`md5sum -- "$file.gz" | awk '{print $1}'`
+ digest=`sha256sum -- "$file.gz" | awk '{print $1}'`
if [ -e "$BASE/DGST-$digest" ]; then
rm -- "$file.gz"
ln "$BASE/DGST-$digest" "$file.gz"