I have a google account with a TeamDrive. What I want is a simple folder in sync with my google drive containing both my google drive file and teamdrive folders. (Just like Dropbox and InSync).
At the moment, I’ve created a rclone folder for teamdrive and I’ve to kind of doing push and pull (pull then push) script to make it works. I’m quite OK with command line but I want to ask about the possibility of having a command/script/whatever which keep my local folder and the whole google drive folders in bi-directional sync (Both regular and teamdrive folders).
I tried the documentation and I could build some sort of manual push and pull commands for the teamdrive but I want to ask about this possibility as well (and is this documented?)
#!/bin/bash
dirPath="/home/toxmi/Public/Sync/GClone/TeamDrives/FolderA"
rclone sync toxmiGappDrive: "$dirPath" --progress -u
This is my pull command and I’ve similar push (and dangerous) command.
Having these even manually is OK. I can do them on demand or use cron/systemctl to do it periodically. What I want is to have some sort of robust and less dangerous thing and aggregate the whole drive under one command.
For example here, I do it only for FolderA but what if I create more folders in the teamdrive? and what about regular drive?
Second, is this the best practice available when you want to push, first you should pull then push? Is there a way to make this in sync. Just consider two user simultaneously work on a file. What happen in this scenario?