We are doing several Linux projects regularly, and we will need to be sure we are backing them up. I wanted to quickly back up a copy of my files and so I went looking for an easy way to upload a file to Google Drive, and I found it with gdrive.
Here is the tutorial on how to upload a file to Google Drive from the command line or terminal.
1. Go to the root directory and download gdrive.
Источник: [https://torrent-igruha.org/3551-portal.html]Here is the tutorial on how to upload a file to Google Drive from the command line or terminal.
1. Go to the root directory and download gdrive.
2. You should see a file in your directory called something like uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE. and rename this file to gdrive.
3. Give execute permission to gdrive.
4. Install the file to /usr folder.
5. Now we will need to give access to Google Drive to allow this program to connect to your account. To do this, insert below command.
6. Copy the link it gives you to your browser and chooses your google drive account.
7. Click Allow button to give access.
8. Copy the generated verification code and insert into a terminal.
9. Now we are done... Let's upload a file.
For example,
7. Click Allow button to give access.
8. Copy the generated verification code and insert into a terminal.
9. Now we are done... Let's upload a file.
For example,
10. Go to google drive and check it's uploaded.
-
-