Avatar of David Aldridge
David Aldridge
Flag for United States of America

asked on 

Remotely creating a tar file via ssh

I'm not even sure I can do this, but I want to have a script that ssh's to another server and creates a tar file on the remote server.  Is that even possible?  Here's what I have been working with, which isn't very much because I can't figure out how to make it work.

Thanks in advance for any help!



ssh $server 'tar cvf $server.logs.tar.gz /opt/bmc/Patrol3/log/Patrol*'
Shell ScriptingUnix OS

Avatar of undefined
Last Comment
David Aldridge

8/22/2022 - Mon