I have a quick question on rclone.
I am trying to download data from tradestatistics.io , where it gives a sample code for downloading:
rclone sync spaces:tradestatistics/hs-rev1992-visualization hs-rev1992-visualization
My question is that how to access list of files in that source and can it be directly done with terminal?
Assuming you've already installed rclone ( https://rclone.org/downloads/ )
To configure rclone to see storage on S3, see https://rclone.org/s3/
Assuming spaces:
is your correctly configured rclone source remote, you can list all files using terminal amnd rclone lsl
command:
rclone lsl spaces:tradestatistics/hs-rev1992-visualization
where tradestatistics
is the bucket and hs-rev1992-visualization
is the root folder.
A more human-readable list can be done with lsf
. It's not recursive, so add -R
:
rclone lsf -R spaces:
More details at https://rclone.org/commands/rclone_lsl/ with info on other lists.
Somehow I could not figure out the configuration.
Let me show you the codes that I am using in my terminal (MacOS) to configure the rclone from the very beginning:
cd && curl -O https://downloads.rclone.org/rclone-current-osx-amd64.zip #this is for downloading latest version
unzip -a rclone-current-osx-amd64.zip && cd rclone-*-osx-amd64 #Unzipping
sudo mkdir -p /Users/USER/Desktop/test
sudo mv rclone /Users/USER/Desktop/test #Moving rclone to a new directory
rclone config #here is the start of misunderstanding
Then I did the following steps:
And these are the all steps that I did for configuration and I can see this "spaces" in my current remotes. But when I enter codes like:
rclone lsl spaces:tradestatistics
rclone sync spaces:tradestatistics/hs-rev1992-visualization hs-rev1992-visualization
It is returning the errors like:
2021/08/25 14:42:43 ERROR : S3 bucket tradestatistics path hs-rev1992-visualization: error reading source root directory: directory not found
2021/08/25 14:42:43 ERROR : Local file system at /Users/khumoyunusmanaliev/hs-rev1992-visualization: not deleting files as there were IO errors
Your assistance will be very helpful!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.