Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 78c2c47

Browse files
authored
spaces reduced
1 parent 7d7ffc7 commit 78c2c47

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎pg_backup/restore_command.sh‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
#!/bin/bash
2-
2+
33
# проверяем, скрипт должен запускаться с двумя параметрами
44
test "$#" -ne 2 && echo "Error: 2 number of parameters expected, $# given" >&2 && exit 2
5-
5+
66
FILE_SRC="/mnt/backup_db/archive_wal/cluster/1ドル"
77
FILE_DST="2ドル"
8-
8+
99
test -f "$FILE_SRC" && cp "$FILE_SRC" "$FILE_DST" && exit
1010
test -f "$FILE_SRC.partial" && cp "$FILE_SRC.partial" "$FILE_DST.partial" && exit
11-
11+
1212
test -f "$FILE_SRC.lz4" && lz4 -dkf "$FILE_SRC.lz4" "$FILE_DST" && exit
1313
test -f "$FILE_SRC.partial.lz4" && lz4 -dkf "$FILE_SRC.partial.lz4" "$FILE_DST.partial" && exit
14-
14+
1515
test -f "$FILE_SRC.zst" && zstd -dkf "$FILE_SRC.zst" -o "$FILE_DST" && exit
1616
test -f "$FILE_SRC.partial.zst" && zstd -dkf "$FILE_SRC.partial.zst" -o "$FILE_DST.partial" && exit
17-
17+
1818
# gzip DEPRECATED
1919
test -f "$FILE_SRC.gz" && gzip -dkc "$FILE_SRC.gz" > "$FILE_DST" && exit
2020
test -f "$FILE_SRC.partial.gz" && gzip -dkc "$FILE_SRC.partial.gz" > "$FILE_DST.partial" && exit
21-
21+
2222
# pg_receivewal support, https://www.postgresql.org/docs/current/app-pgreceivewal.html
2323
test -f "$FILE_SRC.gz.partial" && gzip -dkc "$FILE_SRC.gz.partial" > "$FILE_DST.partial" && exit
2424
test -f "$FILE_SRC.lz4.partial" && lz4 -dkf "$FILE_SRC.lz4.partial" "$FILE_DST.partial" && exit

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /