Skip to content

Is it safe to partially sync encrypted folder contents? #915

Closed Answered by rfjakob
maxkapur asked this question in Q&A
Discussion options

You must be logged in to vote

This is fine.

Note that, independently of partial or full sync, you can end up with sync conflicts on gocryptfs.diriv when you create the same directory independently on different copies that get synced later.

This is because gocryptfs.diriv gets created with random content every time a directory is created.

Example:

PC 1:

mkdir "Weekend Plans"

Encrypted view:

c5gre65asg/gocryptfs.diriv = "0xdeadbeef...."

PC 2:

mkdir "Weekend Plans"

Encrypted view:

c5gre65asg/gocryptfs.diriv = "0xcafecode...."

After sync:

c5gre65asg/gocryptfs.diriv = "0xdeadbeef...."
c5gre65asg/gocryptfs.diriv (conflict 1) = "0xcafecode...."

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rfjakob
Comment options

@rfjakob
Comment options

@maxkapur
Comment options

Answer selected by maxkapur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants