Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: Add optional check for mounted mountpoint(s) #67

Merged
merged 1 commit into from
Aug 9, 2018

Conversation

greezybacon
Copy link
Collaborator

If the systems being synced by bitpocket are syncing a special mounted filesystem, then a check can be added to ensure the filesystem is mounted before the sync will begin. This allows for bitpocket to gracefully abort the sync instead of deleting all the local or remote data because of the missing mount (making the sync target appear empty like all the files were removed).

It's possible I'm the only sysadmin with cluster filesystem mounts which are disabled from time to time for maintenance or otherwise become unavailable for whatever reason. Having a background sync remove data on a backup server while the local mount is down just makes the situation that much more frustrating.

@greezybacon
Copy link
Collaborator Author

On second thought, if the local folder were inside a filesystem which was not mounted, then bitpocket would likely emit an error that path was not a bitpocket directory.

If the systems being synced by bitpocket are syncing a special mounted
filesystem, then a check can be added to ensure the filesystem is mounted
before the sync will begin. This allows for bitpocket to gracefully abort the
sync instead of deleting all the local or remote data because of the missing
mount (making the sync target appear empty like all the files were removed).
@greezybacon greezybacon force-pushed the feature/mountpoint-check branch from 84bb72f to a91c569 Compare August 3, 2018 21:12
@greezybacon greezybacon merged commit aa44275 into ku1ik:master Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant