I'm trying to update some laptops from a large server directory for an EDA app. Most of the time I just rsync the entire directory and exclude the odd item. In this case it's the reverse where I want to exclude everything but include only the odd directory. I thought it'd be easy but can't seem to get the exclude then include options correct. It seems that when you exclude everything you then need to include file by file. Can anyone point me in the right direction? Don
Anyone? Even a yea or nea at this point would be appreciated. Don ----- I'm trying to update some laptops from a large server directory for an EDA app. Most of the time I just rsync the entire directory and exclude the odd item. In this case it's the reverse where I want to exclude everything but include only the odd directory. I thought it'd be easy but can't seem to get the exclude then include options correct. It seems that when you exclude everything you then need to include file by file. Can anyone point me in the right direction? Don
On Wed, Feb 25, 2004 at 06:51:33AM -0500, Don Shesnicky wrote:> It seems that when you exclude everything you then need to include > file by file. Can anyone point me in the right direction?As the docs mention, you have to include every parent directory for every file you want to include or the recursive algorithm will never get down to the file to match it. The alternative to this complexity is to use 2.6.0 and the --files-from option (which lets you just list the files you want to send). ..wayne..