File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,11 @@ if ! ls $tempdir/*.rsync >/dev/null 2>&1; then
113
113
exit 0
114
114
fi
115
115
116
- storage_user=$( ghe-ssh " $GHE_HOSTNAME " -- stat -c %U /data/user/storage || echo git)
117
-
118
116
# rsync all the storage objects
119
117
bm_start " $( basename $0 ) - Storage object sync"
120
118
for file_list in $tempdir /* .rsync; do
121
119
hostname=$( basename $file_list .rsync)
120
+ storage_user=$( ghe-ssh $ssh_config_file_opt $hostname :$port -- stat -c %U /data/user/storage || echo git)
122
121
123
122
object_num=$( cat $file_list | wc -l)
124
123
ghe_verbose " * Transferring $object_num objects from $hostname "
Original file line number Diff line number Diff line change @@ -119,8 +119,6 @@ if ! ls $tempdir/*.rsync >/dev/null 2>&1; then
119
119
exit 0
120
120
fi
121
121
122
- storage_user=$( ghe-ssh " $GHE_HOSTNAME " -- stat -c %U /data/user/storage || echo git)
123
-
124
122
# rsync all the objects to the storage server where they belong.
125
123
# One rsync invocation per server available.
126
124
bm_start " $( basename $0 ) - Restoring objects"
@@ -130,6 +128,8 @@ for file_list in $tempdir/*.rsync; do
130
128
else
131
129
server=$host
132
130
fi
131
+ storage_user=$( ghe-ssh $ssh_config_file_opt $server :$port -- stat -c %U /data/user/storage || echo git)
132
+
133
133
ghe_verbose " * Transferring data to $server ..."
134
134
ghe-rsync -arvHR --delete \
135
135
-e " ssh -q $opts -p $port $ssh_config_file_opt -l $user " \
You can’t perform that action at this time.
0 commit comments