The thing with Google Drive is that they have a REALLY shitty API for accessing files and folders.
With Dropbox, for example, you can say upload to APPFOLDER + ā/Backups/XYZ.zipā.
With google drive, thereās no app folder, but thatās not the worst part. The worst is that if you want to upload to say ā/Dynalist/Backups/XYZ.zipā, you need to:
- Query the root folder for āDynalistā Folder
- If that doesnāt exist, create it, and get a folder id of the Dynalist folder
- Query the āDynalistā folder for the āBackupsā folder
- If that doesnāt exist, create it, and get a folder id for that
- Create file XYZ.zip under the āBackupsā folder.
Now, as you can see, if you have an arbitrary folder ā/a/b/c/d/e/f/g/XYZ.zipā, this step will be very long and very slow (because each step is a remote API call to one of Googleās servers)
One alternative I can think of, is to allow the user to specify a āfolder idā to drop backups in. The user will have to somehow get it from google drive, but then once thatās saved into Dynalist, weāll try to upload files in that folder first. The advantage is that the user can move the folder anywhere even after saving the setting into Dynalist, and backups will still work. The downside is that if the folder is deleted, or anything happens to it, backups will stop rolling.