Create Tar of a directory present in another server
How to create a tar of a directory present in another server ?
I m presently using this in my script and it gives me an error " cannot find this directory"
tar zcvf - /ab-xy | ssh firstname.lastname@example.org:/opt/sg/web/tomcat/webapps "cat > /opt/sg/backup/applic.tar.gz"
All i want to achieve is tar a folder present in server 102 and copy it to backup directory of my current server