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

server/master data not backed up before deletion #53

Open
jordan-stone opened this issue Mar 11, 2015 · 2 comments
Open

server/master data not backed up before deletion #53

jordan-stone opened this issue Mar 11, 2015 · 2 comments

Comments

@jordan-stone
Copy link

local data is backed up before deletion when pulling from master, but master data is not backed up when pushing from local.

This problem arises since I use my master/server to also crunch numbers. If a sync is initiated in the middle of a long process that periodically spits out benchmark data, bitpocket gets confused and will delete data on master during a subsequent sync.

The best solution is probably to put master on a server that isn't used to crunch numbers, but just a word of warning to anyone out there that data on master can be lost and not backed up in some scenarios. I'm not sure how hard it will be to implement backups on master. I notice there is no rsync dry run on the push from local...

@ku1ik
Copy link
Owner

ku1ik commented Mar 12, 2015

Yes, this is indeed an issue. Not sure what would be the best way to handle this. Right now I'm keen to just add a note to the readme file, saying that files on master should not be touched.

@greezybacon
Copy link
Collaborator

As an update, the current master branch has some changes to the syncing technique:

  • First, backups of deleted and changed files are supported on the remote host (ie. the "master") if the REMOTE_BACKUPS option is set in the config file.
  • Secondly, files deleted remotely are now only those which have been detected to have been deleted locally. The detection occurs before the sync starts. So, for very long running syncs, files created in parallel with the sync will not be removed.
  • This also applies to local files -- only those files which were detected to be removed remotely before the sync started are removed locally.

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

No branches or pull requests

3 participants