rsync exclude/include odd behaviour
We have tomcat server located at /opt/tomcat7.0 i want to sync only logs
directory to remote server, I am trying following rsync command with
exclude * everything and include logs but it doesn't syncing anything.
following are tomcat directories (I only want to sync logs directory)
[rsync@server1]$ ls /opt/tomcat7.0
bin/ conf/ lib/ logs/ temp/ webapps/ work/
here is rsync command
[rsync@logserver]$ rsync -avz --delete --copy-links --include='logs'
--exclude='*' server1:/opt/tomcat7.0 /path/to/destination/.
receiving incremental file list
sent 25 bytes received 10 bytes 6.36 bytes/sec
total size is 0 speedup is 0.00
what am i doing wrong?
No comments:
Post a Comment