Exclude large files

2 posts / 0 new
Last post
itefix
Online
Last seen: 2 min 48 sec ago
Joined: 01.05.2008 - 21:33
Exclude large files

Hi all,
I've managed to get rsync working great to replicate about 200gb of data across a 2mb/s pipe to our secondary office. Took an age to catch up with the data, but once there works fine.

My question is how can i exclude any file that is say bigger than 30mb?

itefix
Online
Last seen: 2 min 48 sec ago
Joined: 01.05.2008 - 21:33
Re: Exclude large files

Option --max-size should be for you:

--max-size=SIZE

This tells rsync to avoid transferring any file that is larger than the specified SIZE. The SIZE value can be suffixed with a letter to indicate a size multiplier (K, M, or G) and may be a fractional value (e.g. "--max-size=1.5m").

Topic locked

Release news