Expired How to download files from Google Drive to Linux VPS ?

Status
Not open for further replies.

Vertigo

⍥????
Staff member
Administrator
!!! Important Note !!!
This method does not work anymore
. Use This Method.​

In this tutorial, I will explain how to download files stored on Google Drive to your linux machine or VPS.

Step 1: Install python-pip and gdown utility.
Bash:
# For Debian/Ubuntu Users
apt update
apt install python-pip
pip install gdown

# For RHEL/CentOS Users
yum update
yum install epel-release
yum install python-pip
pip install gdown
Step 2: Make sure public permission is given on the file on Google Drive in Sharing Permissions.
  • Right click on the google drive file and click on Get Shareable Link option.
    339
  • Copy the link and change the permission to Anyone with the link.
    340
Step 3: Take the file ID from google drive link you copied in above step.
For example, if link is https://drive.google.com/file/d/1ysJme6eA8llgElsPFLxn8QocWSkFp_BI/view?usp=sharing
Then the file id is 1ysJme6eA8llgElsPFLxn8QocWSkFp_BI

Step 4:
Finally use the below command to download the file :
Bash:
# Replace file_id with the gdrive file ID
gdown https://drive.google.com/uc?id=file_id

# Example :
gdown https://drive.google.com/uc?id=1ysJme6eA8llgElsPFLxn8QocWSkFp_BI

Now it will download the file on your machine or vps from Google Drive.
 
Last edited:

Vertigo

⍥????
Staff member
Administrator
Someone asked me early in the morning. So I thought to post it here. :)
 

ShinChan

New member
In this tutorial, I will explain how to download files stored on Google Drive to your linux machine or VPS.

Step 1: Install python-pip and gdown utility.
Bash:
# For Debian/Ubuntu Users
apt update
apt install python-pip
pip install gdown

# For RHEL/CentOS Users
yum update
yum install epel-release
yum install python-pip
pip install gdown
Step 2: Make sure public permission is given on the file on Google Drive in Sharing Permissions.
  • Right click on the google drive file and click on Get Shareable Link option.
  • Copy the link and change the permission to Anyone with the link.
Step 3: Take the file ID from google drive link you copied in above step.
For example, if link is https://drive.google.com/file/d/1ysJme6eA8llgElsPFLxn8QocWSkFp_BI/view?usp=sharing
Then the file id is 1ysJme6eA8llgElsPFLxn8QocWSkFp_BI

Step 4:
Finally use the below command to download the file :
Bash:
# Replace file_id with the gdrive file ID
gdown https://drive.google.com/uc?id=file_id

# Example :
gdown https://drive.google.com/uc?id=1ysJme6eA8llgElsPFLxn8QocWSkFp_BI

Now it will download the file on your machine or vps from Google Drive.
not able to....
 

Vertigo

⍥????
Staff member
Administrator
Will update new method.
 
Status
Not open for further replies.
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock