Rsync to upload certain files and ignore others

Wayne Davison wayned at
Fri Mar 11 16:10:20 GMT 2005

On Fri, Mar 11, 2005 at 08:40:02AM -0500, Kevin Smith wrote:
> --include="BackupFiles\Backup\%count%\ 
> --include="BackupFiles\Backup\%count%\*.gpg

I forgot to mention: backslashes are NOT path separators -- use '/'.
And that %count% reference may need to be written $count if you're not
running and you're expecting it to be expanded to a variable
name.  Also, don't forget to include your dirs!  (e.g. --include
BackupFiles/ and --include BackupFiles/Backup/ and --include


More information about the rsync mailing list