Zdenek Pizl
2002-Jul-15 02:16 UTC
rsync - how to exclude all and allow only some files/dirs
Hallo, i searched archive of list, google.com and found nothing suitable :( My problem is : i would like to rsync only directory /lib/modules/2.4.18-5 and nothing else. As a second condition i'd like to use rsync server at source side and suck files to the destination. The server module, let's name it [test], have "exclude from =/etc/exclude" and "include from =/etc/include" directives. exclude : - /.* - /*/ - /bin - /boot - /dev - /etc - /home - /home2 - /initrd - /lib - /lost+found - /misc - /mnt - /opt - /proc - /root - /sbin - /soft - /tmp - /usr - /var (every directory under /) include: + /lib/modules/ + /lib/modules/2.4.18-5 + /lib/modules/2.4.18-5/ + /lib/modules/2.4.18-5/** + /lib/modules/2.4.18-5/**/* - BUT I can't managed it to success. Nothing is transfred :( Where am i doing a mistake ?? thanks Z.P.
Dave Dykstra
2002-Jul-22 11:12 UTC
rsync - how to exclude all and allow only some files/dirs
On Mon, Jul 15, 2002 at 11:21:57AM +0200, Zdenek Pizl wrote:> Hallo, > > i searched archive of list, google.com and found nothing suitable :( > > My problem is : i would like to rsync only directory /lib/modules/2.4.18-5 > and nothing else. As a second condition i'd like to use rsync server at > source side and suck files to the destination. The server module, let's name > it [test], have "exclude from =/etc/exclude" and "include from =/etc/include" > directives. > > exclude : > - /.* > - /*/Exclude/includes are processed in order, the above two patterns exclude everything. ...> - BUT I can't managed it to success. Nothing is transfred :( Where am i doing > a mistake ??- Dave Dykstra
Seemingly Similar Threads
- Samba (RHEL 3) hangs after few days or even hours
- Samba 4.1.0pre1 and problem from creating home users dir from command line
- Wrong acl and permissions on cifs mounted share
- L10N Czech and personal homepage
- -z and -B65536 causing file corruption in 2.5.5 w/zlib 1.1.4