Jump to content

Recommended Posts

Posted

I am testing rclone for archiving some directories to Google Drive.

 

Currently have a command along the lines of rclone copy --verbose “A:\Folder\Folder2\” GoogleDrive:”\2017-18\”

 

Which works great but is there a way to specify a few source directories to upload e.g. rclone copy --verbose “A:\Folder\”,“B:\Folder\Folder2\”,“C:\Folder\Folder2\” GoogleDrive:”\2017-18\”

 

Thanks in advance

Posted (edited)

Using the various filter parameters is one way to do it. e.g.

 

https://rclone.org/filtering

 

rclone copy --verbose [color="#FF0000"]--filter "+ A:/Folder/**" --filter "+ B:/Folder/Folder2/**" --filter "+ C:/Folder/Folder3/**"[/color] GoogleDrive:"/2017-18/"

 

or

 

rclone copy --verbose [color="#FF0000"]--filter-from "Filter.txt"[/color] GoogleDrive:"/2017-18/"

 

Filter.txt contains...

+ A:/Folder/**
+ B:/Folder/Folder2/**
+ C:/Folder/Folder3/**

 

You can also filter out files/folders you don't want to copy too.

 

- *.tmp
- .DS_Store
- .Trashes/**
- /`$RECYCLE.BIN/**
- desktop.ini
- Thumbs.db

Edited by Arthur

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...