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

Folder synced as empty and cannot find info in the git backups #68

Open
yotama9 opened this issue Oct 1, 2017 · 2 comments
Open

Folder synced as empty and cannot find info in the git backups #68

yotama9 opened this issue Oct 1, 2017 · 2 comments

Comments

@yotama9
Copy link

yotama9 commented Oct 1, 2017

I have a machine in the office which I use bitpocket to sync work between it and my laptop. I had a problem with the machine being down for several days and the files on the laptop weren't properly synced. I removed the lock file on the remote machine, ran bitpocket sync and got an error message that a folder which I copied into two different folders and then deleted on the office machine cannot be deleted locally. I moved the folder to a different location and then the sync went through. However, now I see that the folder only has it's subfolders but no files. I ran bitpocket pack on the laptop, and I can see the files in the .bitpocket/pack directory, when I run git log filename I get some output showing there was some action going on last time I was working on these files, but when I run git diff filename I get empty output.

  1. I think that the copying the folder as empty is a bug. I'm not sure how to recreate this.
  2. Is there any hope that the files are salvageable?
@greezybacon
Copy link
Collaborator

I think I understand what you're describing. I opened #67 to handle a server being available but missing a file system mount. Someone also suggested to me detecting if the locally or remotely deleted file listing is approximately equal to the previous entire file listing. Such would also indicate a big problem like what you described. In such a case, the sync should be aborted.

Is there a backup on one of the machines in .bitpocket/backups? Bitpocket transparently backs things up locally in the pull phase.

@yotama9
Copy link
Author

yotama9 commented Oct 2, 2017

the backup folder exists, but it is empty.

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

2 participants