I’m trying to find a way to make Odrive Backup ignore symbolic links and junction points, but it seems like it doesn’t honor the .symlink filetype in the configuration file. Any ideas?
Backup Error:
04 Oct 02:02:57AM INFO Uploading G:\Movies\kids\Oldest_Sons_First_Year.mkv.
04 Oct 02:02:57AM ERROR An unexpected error occurred while backing up G:\Movies\kids to \My B2\Movie-Backups\kids.
04 Oct 02:02:57AM INFO Error encountered backing up G:\Movies\kids to \My B2\Movie-Backups\kids
Hi @toupeiro,
Backup actually uses the same exclusion list as sync right now, but there isn’t a way to exclude symlinks and junctions using it. Right now we follow them and would need to add an explicit flag to ignore them. I’ll see what can be done here.
Are you seeing that files that are symlinks are always erroring on upload, or was that just this particular case?
Hi @toupeiro,
I’ve been doing some testing around this. Backup shouldn’t have an issue with symlinks, but I identified a couple of bugs that were potentially causing issues in your case.
Downloading now and will test right away. Yes, they were made with mklink I might have some that I used Powershell with an itemtype of symboliclink but from a filesystem perspective they should be no different.
So some good news to report from a functional perspective. It appears that there is still an error that occurs when it encounters a symbolic link, but then it says "
Waiting and Retrying". A little more time passes, and then it just continues on with the rest of the file list. This definitely works for my needs, because after verifying in B2, its not “following the symlink” which is something that scps and rsyncs. and deletes can do with the wrong switches So in effect it is ignoring symlinks in its current state with the latest Odrive client you linked above!