Rclone Unable to set expire link or unlink

What is the problem you are having with rclone?

i've successfully generate download link with rclone command

rclone --config=/path/to/config link remote:path

but when i trying to add expire with following command according to this documentation

rclone --config=/path/to/config link --expire 1d remote:path

its show Error: unknown flag: --expire
also when i trying to unlink it with this command

rclone --config=/path/to/config link --unlink remote:path

its also show Error: unknown flag: --unlink

What is your rclone version (output from rclone version)

rclone v1.50.2

  • os/arch: linux/amd64
  • go version: go1.13.6

Which cloud storage system are you using? (eg Google Drive)

Google Drive

please update to latest stable version, v1.57.0 and test again.

https://rclone.org/install/#script-installation

Hello there,thank you for your response
i've tried updated to rclone v.1.57.0

good news it's successfully to set expire on the link,but i still can unlink it,i tried to run same command of the above, and i still can access the link, and here is some debug output:

2021/12/28 14:02:24 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "link" "d:Somefolder/Template.docx" "--unlink" "-vv"]
2021/12/28 14:02:24 DEBUG : Creating backend with remote "d:Somefolder/Template.docx"
2021/12/28 14:02:24 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/12/28 14:02:25 DEBUG : Google drive root 'Somefolder/Template.docx': 'root_folder_id = 0AF1G5Ujwsm8DUk9PVA' - save this in the config to speed up startup
2021/12/28 14:02:26 DEBUG : fs cache: adding new entry for parent of "d:Somefolder/Template.docx", "d:Somefolder"
2021/12/28 14:02:27 DEBUG : Google drive root 'Somefolder': attempting to share single file 'Template.docx'
https://drive.google.com/open?id=1CfnUyv4MQML_rIsylrgT4XEhuZ8P1f5QTiZ6e4HaZfE
2021/12/28 14:02:28 DEBUG : 4 go routines active

also i can't run this command on the latest version of the rclone

rclone --config=/root/x.conf config create x drive scope drive config_is_local false

Latest Rclone (1.57.0):

root@x:~# rclone --config=/root/x.conf config create x drive scope drive config_is_local false
2021/12/28 14:05:47 NOTICE: Config file "/root/x.conf" not found - using defaults
2021/12/28 14:05:47 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=2yZ6OQMZBDE4r1TFt7k-iQ
2021/12/28 14:05:47 NOTICE: Log in and authorize rclone for access
2021/12/28 14:05:47 NOTICE: Waiting for code...

Previos Rclone ( 1.50.2 )

(venv) root@x:/etc/OJTBackup# rclone --config=/root/x.conf config create xx drive scope drive config_is_local false
2021/12/28 22:00:56 NOTICE: Config file "/root/x.conf" not found - using defaults
Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
Auto confirm is set: answering No, override by setting config parameter config_is_local=true
If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=202264815644.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=SWYqwOcFikpsHNm8iBXACw
Log in and authorize rclone for access
Enter verification code>

so i can put the verificaiton code directly, or there is another way to do that in latest version of rclone

try
rclone --config=/root/x.conf config create x drive scope drive config_is_local false --all -vv

about the --unlink for gdrive
https://forum.rclone.org/t/unlink-flag-dont-work-for-google-drive/21037

1 Like

ah i see, thank you for your response, it's really helpfull :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.