Want to achieve specific delete and sync behaviour
Posted: Sat Feb 26, 2022 2:07 am
My scenario is that I am copying new files to a local folder to be synced to a shared remote folder on Google Drive. The traffic is all one way, I never want anything copied back from remote to local.
The behaviour i want is:
1. that if a file is deleted from the remote Google Drive) folder it should be deleted locally too;
2. new files deposited in the local folder should be copied over to the remote folder;
3. files deleted locally should also be deleted remotely.
I am currently using SmartTracking and when a file is deleted remotely it is being restored from the local copy. This is the part I want to change.
I guess I want to rely on the database to know that a file has been deleted remotely and propagating the delete to source, rather than it being considered a completely new file. Is this possible?
The behaviour i want is:
1. that if a file is deleted from the remote Google Drive) folder it should be deleted locally too;
2. new files deposited in the local folder should be copied over to the remote folder;
3. files deleted locally should also be deleted remotely.
I am currently using SmartTracking and when a file is deleted remotely it is being restored from the local copy. This is the part I want to change.
I guess I want to rely on the database to know that a file has been deleted remotely and propagating the delete to source, rather than it being considered a completely new file. Is this possible?