I am in the process of moving my Obsidian Vault off iCloud Drive to avoid sync and availability issues. They are going from iCloud to my Synology Drive. I closed Obsidian and told iCloud to keep the vault permanently downloaded. However, whenever I try to copy a folder from iCloud Drive to Synology Drive, I often (but not always) get a message: “The operation can’t be completed because an unexpected error occurred (error code -8062).” Sometimes it’s error code 0. Any thoughts?
Have you tried moving your vault from iCloud to a local folder first?
I am using Synology Drive on my NAS, so the files are being copied to the local folders on my laptop and then synced to the NAS.
My guess is iCloud isn’t “releasing” your files before Synology tries to sync them. So the next thing I would try, to eliminate iCloud as the problem, is create a folder that has nothing to do with iCloud or your NAS. And see if I could copy an iCloud folder in the new folder.
If that works I would then see if I could move the iCloud folders to the new folder first, THEN to the folder that syncs to your NAS. Good luck.
Tried that. Got an Error Code 0. This is really weird!
No idea why the conflicts arise. But, with any transfer of significant amounts of files, I’d suggest working systematically in defined steps.
-
Sync Obsidian to iCloud. Assure this step is completed. Quit Obsidian. Restart your mac (i.e. to flush any remaining sync issues). Check again that all Obsidian files are synced to iCloud without opening Obsidian.
-
Create a ZIP archive of the Obsidian folder on iCloud (compress the Obsidian folder on iCloud).
-
Transfer the ZIP archive from iCloud to a local folder.
-
Assure that all contents in the local ZIP have been completely captured.
-
Turn off iCloud.
-
Transfer the ZIP archive from the local folder to Synology.
-
Unzip the archive on the Synology drive.
-
Set up the sync process using the Synology folder rather than the iCloud folder.
-
Turn on iCloud.
-
Delete the ZIP archive and its source folder on iCloud.
–
JJW
As mentioned, I suggest pausing the Synology Sync, to eliminate this as a possible failure point. Then use rsync or ditto in Terminal instead of Finder, to eliminate Finder as another possible failure point.
Eg., (config your way):
rsync -avh --progress \
~/Library/Mobile\ Documents/com~apple~CloudDocs/ObsidianVault/ \
~/SynologyDrive/ObsidianVault/
or
ditto -V \
~/Library/Mobile\ Documents/com~apple~CloudDocs/ObsidianVault \
~/SynologyDrive/ObsidianVault
I assume you have no instance of Obsidian running.
Katie
Hi All! Thanks for the help! It turns out, it was a problem for the machine I was using (my MacBook). When I went to move the files from one cloud drive to another (my Synology Drive) on my desktop Mac Studio, it worked just fine. I suspected there was a problem on the laptop when I tried to move an unrelated folder of files ONTO the iCloud Drive and got the same error.
Oh, well. Problem solved!