how to rsync ex/include select specific directories ?
I am trying to set up some rsync scripts, and have been successful. However, now I want to instruct rsync to copy files in specific directory to limit the backup that will happen over a slow link.
my source structure is:
I want to sync only files within folder b and files within folder m. [1,2 are files]
While I have re/read man rsync many times, and --dry-run with at least 100 combinations, I either get the whole tree copied, or I get no files copied. One test gave me folder b and it's files, but also copied files in folders below the required folder.
In other web answers, there seems to be some tricks like **, and including then excluding the same directoy, but still no success.
rsync --dry-run -az --exclude-from=exclude.lst --include-from=include.lst /data/ remote:/data/
it made sense to me to excude all:
Any pointers, or exact in/exclude list setup would be very welcome ?
Last edited by dtimms; 12-23-2004 at 07:04 AM.