I am working on a backup process for a cloud based virtual machine.
I already have a script that will create a tar.gz file, encrypt it with my gpg public key and give it a unique name.
Now I would like to automatically upload it to an online folder. I have both dropbox and google drive and I have enough free storage on either for this task.
I want a solution which will be able to upload one file at a time to a particular folder.
I will need to authorize access to any backup app that runs unattended on my cloud VM and this cloud VM may be hacked so I want to minimal access credentials to my google drive or dropbox files:
- Upload a new file to one particular directory
- Can't read/edit/delete any files anywhere else
- Can't delete or update any files even ones it has previously uploaded
I have looked at rclone (https://www.techrepublic.com/article/how-to-sync-your-linux-gui-less-server-to-your-cloud-service-with-rclone/) and grive (https://www.howtoforge.com/tutorial/sync-documents-with-google-drive-on-ubuntu-linux/) but both seem to want full access to my google drive account.
Does anyone know a way I can leverage my free google/Dropbox storage for this purpose without taking the security risk?
I have investigated Dropbox file requests but it seems this only works using a web interface and there is no API https://www.dropboxforum.com/t5/API-Support-Feedback/Upload-a-file-via-API-to-a-file-request/td-p/265794