Answer the question
In order to leave comments, you need to log in
How to upload files without directories in rclone?
there is such a
hierarchy
rclone sync -v /var/www/project/common/uploads/items {username}:{bucket}
Answer the question
In order to leave comments, you need to log in
The simplest is full paths.
Tip the root directory (parent for /uploads) and use the include or exclude flags to limit the synchronization scope to specific folders where the files are located.
With "only filenames" there is no easy path, because when synchronizing, rklon simply converts the path of the file relative to the current directory into the name of the object in the cloud storage.
An option is to write a script that will pick specific files, but then it will be easier to drop a specific file using the api of a specific cloud. (for aws, for example, via awscli) with a specific object name.
Don't forget that rclone is not a file upload tool, but rather a sync tool .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question