We have Centos, there is a directory with sql backups. How we can send those backups to Google Drive using cron schedule?
The hack is to use Google Colab then mount google drive to it. After that, you can use ssh to access google collab file system as well as access mounted google drive.
SFTP (Secure File Transfer Protocol) is a network protocol that offers file transfer, file access, and file management over any reliable data stream. Google Drive is very similar to conventional FTP/SFTP services, and the best thing is that you can easily integrate Google Drive.
GDCP should work as long as you authenticate the user for cron with the interactive cli.
https://github.com/ctberthiaume/gdcp
... I am using this now to transfer thousands of mp3 files from a ubuntu vps to google drive.
The hack is to use Google Colab then mount google drive to it. After that, you can use ssh to access google collab file system as well as access mounted google drive.
I have written a python notebook here and tried it with success. https://gist.github.com/bikcrum/f9d4cfb0c40dff23329b89cd664d4964
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With