What is the problem you are having with rclone?
Using rclone with OneDrive (business), to keep a copy of stuff I am working on available on the cloud for some colleagues.
Because my local stuff uses symbolic links, I am using rclone with --links
to have them converted to special rclonelink
files on OneDrive.
While most of my modifications are done locally, occasionally I may need to fix stuff operating directly on OneDrive. Because of that, I would like to use the experimental bisync
command.
Unfortunately, bisync
does not seem to operate correctly together with --links
.
Here is my flow that results in a critical error:
- first I run
rclone bisync -l -1 stuff Ondrive:stuff
- on subsequent runs I leave out the
-1
- between runs I apply changes (typically on the local stuff)
If the changes involve symbolic links, on the subsequentrclone
run, the program errors out with errors similar to:
2022-11-03 19:42:29 ERROR : - Path1 file not found in Path2 - 20-21/01_EXAMINED/Progetto.rclonelink
2022-11-03 19:42:29 ERROR : - Path1 file not found in Path2 - 20-21/01_EXAMINED/commenti_progetto.md.rclonelink
2022-11-03 19:42:29 ERROR : Bisync critical error: path1 and path2 are out of sync, run --resync to recover
2022-11-03 19:42:29 ERROR : Bisync aborted. Must run --resync to recover.
Will try to get verbose output in the future if needed.
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.0
- os/version: arch 22.0.0 (64 bit)
- os/kernel: 6.0.6-1-MANJARO (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19.2
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
OneDrive (business)
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone --exclude-if-present .nosync --links -P bisync OneDrive/LabIngInfII OneDrive_unibo:LabIngInfII
The rclone config contents with secrets removed.
[OneDrive_unibo]
type = onedrive
token = ...
drive_id = ...
drive_type = business
A log from the command with the -vv
flag
Not available yet: in all the occasions I had the issue I had to immediately recover with manual actions as someone was waiting for the correct data in OneDrive. I will try to get a full log asap