Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request github#469 from github/no-hardlinks-for-repositori…
Browse files Browse the repository at this point in the history
…es-restore

Remove the -H option from rsync when restoring repositories & gists
  • Loading branch information
jatoben authored Jan 30, 2019
2 parents 23fa679 + 97e407b commit baac2f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion share/github-backup-utils/ghe-restore-repositories
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ for file_list in $tempdir/*.rsync; do
server=$host
fi
ghe_verbose "* Transferring repository networks to $server ..."
ghe-rsync -avrHR --delete \
ghe-rsync -avrR --delete \
-e "ssh -q $opts -p $port $ssh_config_file_opt -l $user" \
--rsync-path="sudo -u git rsync" \
--files-from=$file_list \
Expand Down
2 changes: 1 addition & 1 deletion share/github-backup-utils/ghe-restore-repositories-gist
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ for file_list in $tempdir/*.rsync; do
server=$host
fi
ghe_verbose "* Transferring gists to $server"
ghe-rsync -avrHR --delete \
ghe-rsync -avrR --delete \
-e "ssh -q $opts -p $port $ssh_config_file_opt -l $user" \
--rsync-path="sudo -u git rsync" \
--files-from=$file_list \
Expand Down
2 changes: 1 addition & 1 deletion share/github-backup-utils/ghe-restore-repositories-rsync
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ghe-gc-disable $GHE_HOSTNAME

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

0 comments on commit baac2f2

Please sign in to comment.