How to mirror only specified directories

Henri Shustak henri.shustak at gmail.com
Tue Sep 28 20:00:05 MDT 2010


> I'm still struggling to get just the directory(ies) that I want...

You may find this <http://tinyurl.com/rsync-exclude-all-include-some> post to the LBackup mailing list helpful. 

The example listed (link above) revolves around specifying the root directory as the source and then specifying a selection of sub-directories to include in the sync and then finally a rule which will exclude everything else. 

Please note that each directory within the path must specifically be included for this approach to work. IN addition, this approach utilizes only an excludes file (no include list via the command line).

I learnt about this approach initially from a thread on this (rsync) mailing list. I am positive that a similar example will be listed somewhere within the the rsync mailing list archives.

Hope this helps.


---------------------------------------------------------------------
 This email is protected by LBackup, an open source backup solution. 
 Free as in freedom; LBackup is licensed under the GNU 
 http://www.lbackup.org


More information about the rsync mailing list