Does rclone.conf support a directory prefix?

Does rclone.conf support something like (please pay particular attention to dir_prefix):
[futureCDN-temp]
type = sftp
host =
user = tact
key_file = /var/tmp/future.key
disable_hashcheck = true
shell_type = unix
dir_prefix = /testing

The idea behind dir_prefix = is that all reads and writes would be prefixed by /testing, right after the remote:

So rclone copy /tmp/foo futureCDN-temp:/bar/foo
...would actually copy to futureCDN-temp:/testing/bar/foo

Is there something like this in rclone already? If not, does it sound like a useful feature? I think it might help keep production data separate from test data, for example.

I'm using rclone v1.70.0-DEV at the moment. I'd be happy to upgrade if it'll help.

I googled with a few different search terms about this topic, but didn't find much.

Thanks for the great tool!

[futureCDN-testing]
type = alias
remote = futureCDN-temp:/testing

rclone copy /tmp/foo futureCDN-testing:/bar/foo

Thanks for the info! That's working great. :slight_smile:

1 Like

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