-
Notifications
You must be signed in to change notification settings - Fork 220
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
Invalid cross-device link: backup fails when a symlinked folder is replaced by its real destination folder on source #851
Comments
@jean-christophe-manciot There is a new forming maintaining team and we do review all issues. Is this problem still relevant for you or did you find a solution? Tag: Feedback I think we should write some FAQ content about how to handle symlinks. |
This issue has not been solved with bit 1.3.2. |
Thanks for the feedback. Can you please run BIT from terminal in debug mode via |
starting bit:
exiting bit
|
I've been running into this with Back In Time 1.3.2 from the official(?) PPA. I'm on Ubuntu 22.04.1 LTS. The relevant files look like this (names changed mostly for simplicity):
All worked as expected, then $HOME/src/MyProject/LargePackage changed from a symlink to an actual directory full of files. Now it fails with many error messages in the log that look like
My notifications get similarly filled; I believe they're the same error messages. I've been trying without success to create a small reproducible case. I'll try some more, but can't spend much more time on it. If there are specific things you'd like to try or data that I could collect that might help, please let me know! |
I could not find this error msg in BiT directly and the output Is anyone able to produce a minimal reproducible example to make this problem "debugable"? |
@aryoda |
@jean-christophe-manciot OK, THX for reporting and clarifying this. We need another developer to step in here who has experiences with this none-trival scenario (EncFS + symbolic links + "copy links" enabled) to safe our rare resources. Currently we are preparing a stabilized release of BiT (mainly bug fixes of HIGH bugs) so please give us some time to come back once we find time for this. |
I believe I have a very small, if not minimal reproducible example for what I'm seeing. It seems similar to what the original reporter is seeing. This is with Back In Time 1.3.2 from the official(?) PPA. I'm on Ubuntu 22.04.1 LTS. My system rsync identifies itself as rsync version 3.2.3 protocol version 31. The key series of events appears to be:
Attached should be a script that reproducibly does that for me. It's a bit wonky since the backup is in the background; it'll pause waiting for you to hit Enter when the first back up finishes. It relies on and will clobber |
I'm baffled by the fact that this issue is dismissed and considered as so unimportant that it will probably never be addressed ( Actually, it is quite a serious one because every time a symlink pointing to a folder is replaced by a regular folder, backintime fails to take the snapshot and no backup is done at all! |
Dear Jean, This issue is not dismissed, only closed issues are. Please read the milestone carefully and look at its bright side: It also means it could be fixed until the uber-next release (1.3.6 or 1.4.0) which is quit near. If you want to help with deeper analysis of the relevant code and an approach for a solution, I would be glad to assist you. If you provide code that don't need to be perfect. Just throw something in and we figuring out together. Have you considered that this might be an rsync-based issue? Maybe this is the usual rsync-behaviour? |
AFAIK, there is nothing wrong with rsync, although some of its options are sometimes complex.
... the last sentence being exactly what we want. POC:
Trying to rsync the test folder symlink from /tmp into /tmp/test_dest_folder:
No surprise.
Trying again to rsync the test real folder from /tmp into /tmp/test_dest_folder with the same CLI command:
As you can see, not using the |
Thanks for analyzing this. I can't find that switch in our rsync call but it might be inherited by one of the others switches. |
I could reproduce the problem (while working on #1491) using the script of @AlanDeSmet The actual
The relevant
The exit code 23 means "Partial transfer due to error" according to Observations:
Next steps:
|
Ubuntu 17.10
bit 1.1.24
Configuration:
![opted out copy links](https://user-images.githubusercontent.com/13176858/34265951-d985a0e0-e677-11e7-8c6d-573217f69b42.png)
@Germar
/media/actionmystique/SAMSUNG5-Shared/home/actionmystique/Bash/
to source:BIT log:
My understanding is that bit tries to symlink the current backed up files inside
Bash
with the same files already backed up 2 days ago, although nothing was actually backed up because their sources were at that time only ... inside a symlinked folder.On 12/21, bit should have backed up the real folder this time, even though nothing had changed when compared to 2 days ago, because there was no real previous backup.
Let le know if you need some clarification.
The text was updated successfully, but these errors were encountered: