Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send files over SSH/SCP to Google Drive?

We have Centos, there is a directory with sql backups. How we can send those backups to Google Drive using cron schedule?

like image 356
Serge Avatar asked Apr 11 '14 08:04

Serge


People also ask

Can you ssh into 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.

Can you Sftp to 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.


2 Answers

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.

like image 144
dovidweisz Avatar answered Oct 16 '22 07:10

dovidweisz


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

like image 30
bikram Avatar answered Oct 16 '22 08:10

bikram