Skip to content

Check filesystem supports hardlinks#388

Merged
lildude merged 6 commits into
masterfrom
lildude/check-filesystem-reqs
Apr 17, 2018
Merged

Check filesystem supports hardlinks#388
lildude merged 6 commits into
masterfrom
lildude/check-filesystem-reqs

Conversation

@lildude

@lildude lildude commented Apr 3, 2018

Copy link
Copy Markdown
Member

As backup-utils uses rsync's hardlinking functionality for efficient backup storage, we should really be checking and enforcing this requirement. This PR introduces an early check on the filesystem and exits with an error.

Fixes https://github.com/github/backup-utils/issues/98 - though we don't use the method that caused that problem anymore but we do still use hardlinks.

@lildude lildude requested a review from a team April 3, 2018 17:50
@lildude lildude changed the title Lildude/check filesystem reqs Check filesystem supports hardlinks Apr 3, 2018
Comment thread bin/ghe-backup
if ln incomplete test_link >/dev/null 2>&1; then
rm -f test_link
else
echo "Error: the filesystem containing $GHE_DATA_DIR does not support hard links." 1>&2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lildude Should this also explain why we need hard links?

@dctucker dctucker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anth1y anth1y left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lildude lildude merged commit 5a78f25 into master Apr 17, 2018
@lildude lildude deleted the lildude/check-filesystem-reqs branch April 17, 2018 15:42
@lildude lildude mentioned this pull request May 9, 2018
pluehne pushed a commit to pluehne/backup-utils that referenced this pull request Aug 8, 2023
@bonsohi bonsohi mentioned this pull request Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants