I'm performing backup via a standard use of rsync: (note:$dayte is set via a .sh file) rsync -aurvz --backup --backup-dir=../data_originals/$dayte -e ssh /mnt/netware6/dhs01/data/ ./dhs01/data/ My Question: Is there any way to make rsync ignore files greater than a certain size. The files do not follow any naming convention and are therefore only identifiable by their size? (e.g I want all files backed up except files greater than say 200Mb) thanks sam
Alexandros Papadopoulos
2006-May-16 10:31 UTC
is there an rsync switch to not backup a file of size > X
On Tuesday 16 May 2006 11:41, Sam wrote: <snip>> My Question: Is there any way to make rsync ignore files greater than > a certain size.Yes. Try man rsync and look for max-size (oh well, since RTFM is just mean and doesn't help create usable archives...) --min-size=SIZE This tells rsync to avoid transferring any file that is smaller 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. "--min-size=1.5k"). --max-size=SIZE This tells rsync to avoid transferring any file that is larger than the specified SIZE. See --min-size above for the description of SIZE. Cheers -A