Coder Social home page Coder Social logo

Error: difference in snaps for path about bsync HOT 7 OPEN

ceremcem avatar ceremcem commented on August 23, 2024
Error: difference in snaps for path

from bsync.

Comments (7)

ceremcem avatar ceremcem commented on August 23, 2024

...and I can not find a workaround...

ceremcem@cca-erik:~$ bsync ./-.-\ cca-home/ /media/ceremcem/zfs_zencefil/-.-\ cca-home/
Loading filelists...
Error: difference in snaps for path: bin/firefox.d
ceremcem@cca-erik:~$ find ./-.-\ cca-home/ -iname "firefox.d"
ceremcem@cca-erik:~$ 

from bsync.

dooblem avatar dooblem commented on August 23, 2024

Hi ceremcem,
Can you try bsync branch I suggested you in #7 ?

You can also delete all .bsync-snap-* files, but you will loose previous history.

You may run bsync with -v (verbose) to get the .bsync-snap filenames.

This is strange, it's like the firefox.d has been deleted while bsync was making the snapshots.

from bsync.

dooblem avatar dooblem commented on August 23, 2024

After running bsync with -v, you may send me the 2 .bsync-snap files from the 2 directories. I'll take a look at it.

from bsync.

ceremcem avatar ceremcem commented on August 23, 2024

No no, sorry, I should say that I manually deleted firefox.d in order to get a workaround.

from bsync.

dooblem avatar dooblem commented on August 23, 2024

Let me know if you tested my new branch...

from bsync.

Busyvar avatar Busyvar commented on August 23, 2024

I have the same issue. What should i do?

from bsync.

erikmd avatar erikmd commented on August 23, 2024

Hello @dooblem,

I also experienced this kind of issue, not with firefox.d but with the .bash_history file, probably because I was using another terminal during the sync... See below for a summary of bsync output.

I followed your suggestion in #7 (comment) and tested the code of your nostrict branch.

Apparently this seemed to solve the issue (without needing to remove the .bsync-snap-* files) and I was also asked what to do with the problematic file (just like a regular bsync conflict).

So I believe that this code would deserve to be merged into master (either directly or behind a command-line option such as -f or -k ...)

Best regards.

~$ ~/forge/git-anon/bsync/bsync ~/ [SERVER]:[DIRECTORY]
Loading filelists...
Error: difference in snaps for path: .bash_history
~$ cd ~/forge/git-anon/bsync/
~/forge/git-anon/bsync$ git checkout nostrict
Branch nostrict set up to track remote branch nostrict from origin.
Switched to a new branch 'nostrict'
~/forge/git-anon/bsync$ cd
~$ ~/forge/git-anon/bsync/bsync ~/ [SERVER]:[DIRECTORY]
Warning: difference in snaps, ignoring history for path: .bash_history
Loading filelists...

CONFLICT detected on: .bash_history
LEFT DIR CHANGE                                   RIGHT DIR CHANGE
12967B (2015-08-31 00:28:47)                      10778B (2015-08-30 21:34:03)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFLICT detected on: .bash_history
LEFT DIR CHANGE                                   RIGHT DIR CHANGE
12967B (2015-08-31 00:28:47)                      10778B (2015-08-30 21:34:03)

Which one do I keep? [1/2/1a/2a/Quit/Help] 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(LEFT DIR CONTENT)                                (RIGHT DIR CONTENT)             (ACTION)

[...]

Todo in [HOME]: sync:1
Todo in [SERVER]:[DIRECTORY]: mv:1 rm:2 cp:10 sync:33
Apply actions? [y/N] y

Applying actions...
Updating filelists...
Done!
~$ echo $?
0

from bsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.