Rsync to upload certain files and ignore others

Wayne Davison wayned at samba.org
Sun Feb 13 07:03:45 GMT 2005


On Thu, Feb 10, 2005 at 09:40:20AM -0800, jediknight2 wrote:
> Is there a way for RSYNC when its backing up a folder say c:\output to
> ignore certain file extentions as a whole...so basically ignore all other
> files EXCEPT *.gpg files?

You can exclude all files except *.gpg files from the transfer (using
--include='*.gpg' --exclude='*'), but there is no way to limit what
files get backed up -- all updated files are backed up when --backup is
specified.

..wayne..


More information about the rsync mailing list