Skip to content

Commit baac2f2

Browse files
authored
Merge pull request #469 from github/no-hardlinks-for-repositories-restore
Remove the -H option from rsync when restoring repositories & gists
2 parents 23fa679 + 97e407b commit baac2f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

share/github-backup-utils/ghe-restore-repositories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ for file_list in $tempdir/*.rsync; do
147147
server=$host
148148
fi
149149
ghe_verbose "* Transferring repository networks to $server ..."
150-
ghe-rsync -avrHR --delete \
150+
ghe-rsync -avrR --delete \
151151
-e "ssh -q $opts -p $port $ssh_config_file_opt -l $user" \
152152
--rsync-path="sudo -u git rsync" \
153153
--files-from=$file_list \

share/github-backup-utils/ghe-restore-repositories-gist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ for file_list in $tempdir/*.rsync; do
139139
server=$host
140140
fi
141141
ghe_verbose "* Transferring gists to $server"
142-
ghe-rsync -avrHR --delete \
142+
ghe-rsync -avrR --delete \
143143
-e "ssh -q $opts -p $port $ssh_config_file_opt -l $user" \
144144
--rsync-path="sudo -u git rsync" \
145145
--files-from=$file_list \

share/github-backup-utils/ghe-restore-repositories-rsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ghe-gc-disable $GHE_HOSTNAME
3737

3838
# Transfer all git repository data from the latest snapshot to the GitHub
3939
# instance in a single rsync invocation.
40-
ghe-rsync -avH --delete \
40+
ghe-rsync -av --delete \
4141
--exclude ".sync_in_progress" \
4242
-e "ghe-ssh -p $(ssh_port_part "$GHE_HOSTNAME")" \
4343
--rsync-path="sudo -u git rsync" \

0 commit comments

Comments
 (0)