Repo sync with Internxt's WebDAV and its file's comparision criteria #8663
-
Hello everyone, Internxt's WedDAV user as file comparison criteria the file path / filename and the file size; I've managed to make their WebDAV works (and it was not that easy...) but I'm asking if that criteria can bring to a corrupted synched Borg repository.
So, is it safe to rely on that system that use that criteria to know if a file has been modified? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Just the filename and file size is a bit poor for a "sync" process, usually there is at least a timestamp or a checksum that's also considered. For the borg segment files it would work, maybe also the repo index and hints file. The repo config might be a problem though, e.g. if you change the repokey passphrase or append-only between 0 and 1, the config size might not change although the config is different. The config file is NOT modified btw, borg rather writes a new config file to a temp filename and then atomically moves the temp file over the existing config. But if the sync process only checks filename and size, that does not help... |
Beta Was this translation helpful? Give feedback.
Just the filename and file size is a bit poor for a "sync" process, usually there is at least a timestamp or a checksum that's also considered.
For the borg segment files it would work, maybe also the repo index and hints file.
The repo config might be a problem though, e.g. if you change the repokey passphrase or append-only between 0 and 1, the config size might not change although the config is different.
The config file is NOT modified btw, borg rather writes a new config file to a temp filename and then atomically moves the temp file over the existing config. But if the sync process only checks filename and size, that does not help...