What is the problem you are having with rclone?
Token was expired every hour
What is your rclone version (output from rclone version
)
rclone v1.51.0
- os/arch: android/arm64
- go version: go1.13.7
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Android 9
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone about GoogleDrive:
A log from the command with the -vv
flag (eg output from rclone -vv copy /tmp remote:tmp
)
There is a step by step to update the token using the rclone config, Is it possible to create a .sh file that does this automatically without me having to type anything?
$ rclone config
Current remotes:
Name Type
==== ====
GoogleDrive drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> e
Choose a number from below, or type in an existing value
1 > GoogleDrive
remote> 1
[GoogleDrive]
type = drive
client_id = 990329642480-fl392inhs4ckln2r62c38ajc3ltkofqd.apps.googleusercontent.com
client_secret = XXX
scope = drive
token = {"access_token":"ya29.XXX","token_type":"Bearer","expiry":"2020-02-22T12:44:07.648805211Z"}
root_folder_id = 0AKXXX
Edit remote
** See help for drive backend at: https://rclone.org/drive/ **
Value "client_id" = "9903XXX"
Edit? (y/n)>
y) Yes
n) No (default)
y/n> n
Value "client_secret" = "XXX"
Edit? (y/n)>
y) Yes
n) No (default)
y/n> n
Value "scope" = "drive"
Edit? (y/n)>
y) Yes
n) No (default)
y/n> n
Value "root_folder_id" = "XXX"
Edit? (y/n)>
y) Yes
n) No (default)
y/n> n
Value "service_account_file" = ""
Edit? (y/n)>
y) Yes
n) No (default)
y/n> n
Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n
[GoogleDrive]
type = drive
client_id = 99032XXX
client_secret = XXX
scope = drive
token = {"access_token":"ya29XXX","token_type":"Bearer","expiry":"2020-02-22T12:44:07.648805211Z"}
root_folder_id = 0AKTXXX
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Remote config
Already have a token - refresh?
y) Yes (default)
n) No
y/n> y
Use auto config?
- Say Y if not sure
- Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n> y
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=-Vy28o4jkykxxP8GU1vuFg
Log in and authorize rclone for access
Waiting for code...
Got code
Configure this as a team drive?
y) Yes
n) No (default)
y/n> n
Current remotes:
Name Type
==== ====
GoogleDrive drive
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q