How to rsync selective subdirectories
pepijn at kangaroot.net
Sun Aug 11 22:39:00 EST 2002
for i in `ls .` do; rsync -e ssh ./$i/toid user at host:dir; done
I had some problems with using --include and --exclude to skip different
directories and include others when I had a huge number of subdirectories.
It always seems like the rsync actually searches trough those exluded
directories just to exclude them in stead of denying them from the
Kangaroot Linux Solutions
Grote Steenweg 91
2600 Berchem, Antwerpen
Tel: +32 3/286.17.17
Fax: +32 3/281.23.49
Email: pepijn at kangaroot.net
On Mon, 12 Aug 2002, Nitin Agarwal wrote:
> My directory structure is something like following:
> List of files in /abc/dir/
> (where directory name above is the date, and daily changes i.e.
> directories are added and deleted)
> list of files in /abc/dir/20020811
> (all the date directories contain the directories as above and there are
> many subdirectories in the aboce directories)
> I want to rsync all the dates directories but only the "toid"
> MY QUESTION IS: How can i rsync only the selected subdirectories?
> Please help in this matter...
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
More information about the rsync