How not to copy a specific path?


#1

Today I am running every 5 minutes the following command:

/usr/sbin/rclone copy meudrive:/Storage1/EDITORA/ /srv/Storage1/EDITORA/

But I’d like NOT to COPY files that are within a particular path: meudrive:/Storage1/EDITORA/ILUSTRAS/VIVER VALORES 2017/FUNDAMENTAL

Is there any way to do this?


#2

Check out the filtering docs

Something like --exclude /Storage1/EDITORA/ILUSTRAS/VIVER VALORES 2017/FUNDAMENTAL/** should do the trick.


#3

I tried that way and I could not.

I just got that way here:

rclone --exclude ‘VIVER VALORES 2017/FUNDAMENTAL/**’ copy gdrive:/Storage1/ ~/Storage1/


#4

Use rclone ls to experiment with the exclude until it does what you want, eg

rclone --exclude ‘VIVER VALORES 2017/FUNDAMENTAL/**’ ls gdrive:/Storage1/

What I wrote will work for excluding a directory called FUNDAMENTAL - is that what you have got?


#5

The way I did solved my situation.

Anyway, thanks for trying to help!

And congratulations for this tool that has helped so many network administrators. :wink:


#6

Excellent

Thank you :blush: