I want to copy several different folders to one remote folder but couldn't find a way to do it in one command.
I have tried to use interactive mode but it would include the (many) dot folders. Also it doesn't let me choose the dirs beforhand which leads to making me have to wait for the files to be copied in each dir and there are 1 million+ files there which makes waiting for each dir very impratical.
I tried at least to get rid of the dot folders and others with --exclude=.** or --exclude=/.** but it didn't work.
I found a very ugly solution of using the following script:
include what you need and exclude everything else. If you have a lot of rules you have to use then you can simplify this command by using --filter-from
BTW:
You are using ancient version of rclone - remove it and install the latest one directly from Install
This made a mess of the copy that was already in the middle. It put all files and subfolders of the subfolders in one dir not creating the original dirs.
I took for granted that it was obvious that when I said copy to one location should be each dir to that location. Not the lower files. Sorry for that.
I this this way will be more clear what I'm trying to accomplish here:
I have this in
/home/nelson
βββ Android
βββ Desktop
βββ bin
βββ bkp
βββ data
βββ dev
βββ Documents
βββ Downloads
βββ Images
βββ Models
βββ Music
βββ Postman
βββ AppData
βββ progs
βββ Public
βββ t
βββ Videos
βββ VirtualBox VMs
And I want this in remote:
/bkp/desktop-2024-05-09
βββ Desktop
βββ bin
βββ bkp
βββ data
βββ dev
βββ Documents
βββ Images
βββ Music
βββ progs
You can always add additional exclusions if needed. Just keep in mind that rules are processed in the order they are defined. So pay attention to their order. Arrange the order of filter rules with the most restrictive first and work down.
Experiment with rules until you define exactly what you need. You can always use --dry-run for testing.