I’m now using robocopy to directly copy my vault from the iCloud drive to the dropbox drive. This is my robocopy.bat script:
@ECHO ON
SETLOCAL
SET _source=C:\Users\uwe\iCloudDrive\iCloud~md~obsidian\Obsidian\
:: Change C:\example_source to the directory you want to copy from
SET _dest=C:\Users\uwe\Dropbox\Apps\obsidian
:: Change X:\example_dest to the directory you want to copy to
SET _what=/COPY:DT /E
:: Sets specific copy instructions
:: See https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
SET _options=/LOG:C:\Users\uwe\robocopy\log.txt
:: Log file specifications
:: See readme for more details
ROBOCOPY %_source% %_dest% %_what% %_options%
:: Starts ROBOCOPY
::attrib -s -h %_dest%
:: Removes System and Hidden Attributes from copied files
I have it scheduled with the windows task scheduler.
Detailed instructions from this site
This should also work with other cloud services like Google Drive, etc that can we accessed using the windows file explorer.