Cool way to run a script on a remote machine

If you have a local script file and want to run the script on another server use the following : ssh root@torino.maranello.local  ‘bash -s’ < script_local.sh Enjoy 🙂

Tar a folder or entire system through ssh

We all had the problem of needing to backup a folder or an entire system from a machine before decommissioning or as a postfix backup solution only to find tarring aint gonna work cause you have very little space left. Also there are folders you want to avoid tarring since they contain logs or system…