I tried the command again and this time it worked, i don't know why it din't worked before.
But i have another problem. I am trying to use the --exclude-from option, but it doesn't seem to work, because if i use --dry-run with, and without, the --exclude-from option it uploads the same size of data. This is the command:
Include/Excludes are relative from your path as well.
What are you trying to exclude?
So if you have a path, you have to make it relative:
felix@gemini:~$ rclone ls /home/felix/test
0 one
0 two
felix@gemini:~$ rclone ls /home/felix/test --exclude /home/felix/test/one
0 one
0 two
felix@gemini:~$ rclone ls /home/felix/test --exclude one
0 two
What if i have two directories named Games on different location in my home directory, and i want to exclude only one of them. If i use relative path will this not exclude both of them?
Yes, this is the command. But i am not sure what do you mean by relative paths. Do you mean i have to omit only this part of the paths in exclude-mega1crypt.txt file: /home/xxxxx/?
Ok, got it.
And what about if i want to exclude all directories with specific name no matter their location? For example, if i want to exclude all directories with the name cache.
My question is what to put in my exclude-mega1crypt.txt file if i want to exclude all directories with the name cache, and some other directories. Currently, this is what i have in the file:
I have many apps that have directory named cache in their data location. And i want to exclude only the directories that have the exact name cache, not these that contain the word cache in their name, like blahcache, or cacheblah, or startcacheend.