Skip to content

Commit c335532

Browse files
committed
Merge remote-tracking branch 'kjedruczyk/rsync-hardlinks'
2 parents 981ebca + b3581bd commit c335532

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libexec/ghe-backup-repositories-rsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ RULES
155155
# since these files are already well compressed.
156156
echo 1>&3
157157
echo "* Transferring objects and packs ..." 1>&3
158-
rsync_repository_data <<RULES
158+
rsync_repository_data -H <<RULES
159159
- /__*__/
160160
+ /*/
161161
+ /*/*.git

libexec/ghe-restore-repositories-rsync

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ghe_remote_version_required "$host"
2525

2626
# Transfer all git repository data from the latest snapshot to the GitHub
2727
# instance in a single rsync invocation.
28-
ghe-rsync -av --delete \
28+
ghe-rsync -avH --delete \
2929
-e "ghe-ssh -p $(ssh_port_part "$host")" \
3030
--rsync-path="sudo -u git rsync" \
3131
"$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/repositories/" \

0 commit comments

Comments
 (0)