I am trying to automate a backup from one Google Teamdrive (A) to another Google Teamdrive (B).
The backup/copy is made using rclone in combination with crontab.
The copy seems successful (folders are being created in drive B, pdf-, jpg, and MS Office files are copied) but Google files are not copied to drive B (Google docs, Google spreadsheets,...)
Is it possible to copy Google files with rclone + crontab?
P.S. I am no Linux-expert at all. It just copy and past code i find on the internet to make things work.
Run the command 'rclone version' and share the full output of the command.
I noticed when trying to copy the files by using the following command: rclone copy Teamdrive_A: Teamdrive_AUTOBackup_Teamdrive_B: -vv
...the Google files are converted to Office files (.docx, .xlsx,...) so the copy seems successful. Could it be that the problem is situated in the crontab tool?
Below you can find a piece of the -vv log:
2025/01/09 13:24:22 DEBUG : Google drive root '': Waiting for transfers to finish
2025/01/09 13:24:22 INFO : 2.Middenbouw/MB - ADMINISTRATIE: Set directory modification time (using SetModTime)
2025/01/09 13:24:23 INFO : 3.Bovenbouw/15. SPRINT, snelkoppelingenmap: Set directory modification time (using SetModTime)
2025/01/09 13:24:23 INFO : 3.Bovenbouw: Set directory modification time (using SetModTime)
2025/01/09 13:24:24 INFO : 2.Middenbouw: Set directory modification time (using SetModTime)
2025/01/09 13:24:24 ERROR : Attempt 3/3 failed with 1 errors and: failed to open source object: can't read dangling shortcut
2025/01/09 13:24:24 INFO :
Transferred: 8.679 GiB / 8.679 GiB, 100%, 55.734 KiB/s, ETA 0s
Errors: 1 (retrying may help)
Checks: 205011 / 205011, 100%
Transferred: 3073 / 3073, 100%
Elapsed time: 1h50m15.7s
2025/01/09 13:24:24 DEBUG : 36 go routines active
2025/01/09 13:24:24 NOTICE: Failed to copy: failed to open source object: can't read dangling shortcut
Can you post FULL log showing actual problem you are trying to fix? Not some random snippet showing something different.
To make is shorter copy only some small directory maybe.
and BTW if it works when you run it from command line then it should work when run from crontab. Assuming that you run the same command with the same config etc.
Thanks for your reply.
Since I am not the most specialized Linux user, It ain't easy for me to simply adjust commands. I'm sorry.
But I have the impression that the problem has now been resolved. So thanks for your assistance anyway!