link wget dari google drive


Status
Not open for further replies.

rachmaddee

Beginner 2.0
sore
ada yang tau perintah download file backup dari google drive ke server?
pakai wget kah ? atau curl kah ?
yang servernya di backup ke google drive bagi tutor dong mas :d
soalnya repot kalau download dulu ke local lalu upload lagi ke server, 2x kerja jadinya.
terima kasih.
 

Bestariweb Hosting

Hosting Guru
The Warrior
Verified Provider
coba pakai rclone dari https://rclone.org/
setelah download rclone, config dengan:
./rclone config
ikuti langkah langkah untuk config tambah Googledrive

Setelah berhasil tambahkan Googledrive di rclone, download file anda dengan perintah:

./rclone copy Gdrive:/path/to/file /path/to/save

dimana Gdrive adalah nama googledrive saat config

Selain untuk download, rclone juga bisa digunakan untuk upload ke Google drive dan beberapa cloud storage lain (Dropbox, onedrive, dll)
 

GPLHosting

Hosting Guru
coba pakai rclone dari https://rclone.org/
setelah download rclone, config dengan:
./rclone config
ikuti langkah langkah untuk config tambah Googledrive

Setelah berhasil tambahkan Googledrive di rclone, download file anda dengan perintah:

./rclone copy Gdrive:/path/to/file /path/to/save

dimana Gdrive adalah nama googledrive saat config

Selain untuk download, rclone juga bisa digunakan untuk upload ke Google drive dan beberapa cloud storage lain (Dropbox, onedrive, dll)

Singkat, padat, tepat ... mantab om Momod :113::113::113:
 

rachmaddee

Beginner 2.0
sudah saya coba install, kemudian konfig dan berhenti dilangkah ini

Code:
[root@server rclone-v1.39-linux-amd64]# rclone config
2018/03/15 20:12:26 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> backup-cp
Type of storage to configure.
Choose a number from below, or type in your own value
 1 / Amazon Drive
   \ "amazon cloud drive"
 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
   \ "s3"
 3 / Backblaze B2
   \ "b2"
 4 / Box
   \ "box"
 5 / Cache a remote
   \ "cache"
 6 / Dropbox
   \ "dropbox"
 7 / Encrypt/Decrypt a remote
   \ "crypt"
 8 / FTP Connection
   \ "ftp"
 9 / Google Cloud Storage (this is not Google Drive)
   \ "google cloud storage"
10 / Google Drive
   \ "drive"
11 / Hubic
   \ "hubic"
12 / Local Disk
   \ "local"
13 / Microsoft Azure Blob Storage
   \ "azureblob"
14 / Microsoft OneDrive
   \ "onedrive"
15 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
   \ "swift"
16 / Pcloud
   \ "pcloud"
17 / QingCloud Object Storage
   \ "qingstor"
18 / SSH/SFTP Connection
   \ "sftp"
19 / Webdav
   \ "webdav"
20 / Yandex Disk
   \ "yandex"
21 / http Connection
   \ "http"
Storage> 10
Google Application Client Id - leave blank normally.
client_id>  
Google Application Client Secret - leave blank normally.
client_secret> 
Service Account Credentials JSON file path - needed only if you want use SA instead of interactive login.
service_account_file> 
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine or Y didn't work
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...

saya coba 2 cara
yang pertama client_id> dan client_secret> saya isi dengan client id yang ada di gdrive
yang kedua saya coba kosongkan, namun stop juga seperti diatas.
salahnya dimana ya mas?
 

mas.satriyo

Hosting Guru
yang pertama client_id> dan client_secret> saya isi dengan client id yang ada di gdrive
yang kedua saya coba kosongkan, namun stop juga seperti diatas.
salahnya dimana ya mas?

ini servernya headless (tanpa gui) atau ada tampilan desktopnya ya?
coba ikuti sesuai manual rclone
https://rclone.org/drive/

kalo headles, sesuaikan dengan instruksi saat config
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine or Y didn't work
y) Yes
n) No
 

Bestariweb Hosting

Hosting Guru
The Warrior
Verified Provider
gui mas, pakai cpanel servernya
pas pilih y mentoknya disitu.
Pilih n

Code:
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine or Y didn't work
y) Yes
n) No
y/n> n
nanti akan muncul link. copas link ke browser
 

mas.satriyo

Hosting Guru
gui mas, pakai cpanel servernya
maksudnya desktop gui, cpanel kan web gui
berarti tidak ada desktop-nya, atau 'headless/remote'

di sini pilih 'n'
Code:
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine or Y didn't work
y) Yes
n) No
 
Status
Not open for further replies.

Top