Skip to content

Commit c01f12e

Browse files
committed
Replace redis-cli with ghe-redis-cli
1 parent 28cf107 commit c01f12e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

share/github-backup-utils/ghe-backup-redis

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ ghe-ssh "$GHE_HOSTNAME" /bin/bash <<EOF
2222
set -e
2323
2424
redis_host=\$(ghe-config cluster.redis-master 2>/dev/null || echo "localhost")
25-
timestamp=\$(redis-cli -h \$redis_host LASTSAVE)
25+
timestamp=\$(ghe-redis-cli -h \$redis_host LASTSAVE)
2626
2727
for i in \$(seq 10); do
28-
if ! redis-cli -h \$redis_host BGSAVE | grep -q ERR; then
28+
if ! ghe-redis-cli -h \$redis_host BGSAVE | grep -q ERR; then
2929
break
3030
fi
3131
sleep 15
3232
done
3333
for n in \$(seq 3600); do
34-
if [ "\$(redis-cli -h \$redis_host LASTSAVE)" != "\$timestamp" ]; then
34+
if [ "\$(ghe-redis-cli -h \$redis_host LASTSAVE)" != "\$timestamp" ]; then
3535
break
3636
fi
3737
sleep 1
3838
done
39-
[ "\$(redis-cli -h \$redis_host LASTSAVE)" != "\$timestamp" ] # exits 1 if bgsave didn't work
39+
[ "\$(ghe-redis-cli -h \$redis_host LASTSAVE)" != "\$timestamp" ] # exits 1 if bgsave didn't work
4040
4141
if [ "\$redis_host" != "localhost" ]; then
4242
ssh \$redis_host sudo cat '$GHE_REMOTE_DATA_USER_DIR/redis/dump.rdb'

0 commit comments

Comments
 (0)