2016-06-11

rsync exclude any folder with a name in subdirectories

$ rsync -alPqtz --delete --stats -e ssh --exclude dir/ --log-file /path/to/logfile /path/to/source user@host:/path/to/desination

/DIR/ exclude DIR from root
/DIR/* include DIR but exclude its contents
DIR/ exclude DIR from anywhere

No comments:

Post a Comment