Friday, December 2, 2016

creating tar archive by excluding file

how can i exclude files when creating tar archive?


tar -zcv -f target.tar.gz --exclude-from='exclude.txt' source/

Now, in your exclude.txt file you can place the paths to exclude:

logs/*
errors
data/*.bin

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...