M27: make backup checksums portable
This commit is contained in:
@@ -21,7 +21,7 @@ while true; do
|
||||
--host=db --username="$POSTGRES_USER" "$POSTGRES_DB" > "$temporary" \
|
||||
&& pg_restore --list "$temporary" > /dev/null; then
|
||||
mv "$temporary" "$target"
|
||||
sha256sum "$target" > "$target.sha256"
|
||||
(cd "$destination" && sha256sum "$(basename "$target")" > "$(basename "$target").sha256")
|
||||
if [ -n "$secondary" ]; then
|
||||
cp "$target" "$target.sha256" "$secondary/"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user