Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: small grammatical fix

...

You can change "localhost" to any hostname you want, or even specify several hostnames separated with commas. This script is the simplest one, but it already does plenty of stuff - and can be used in some simple scenarios. Let's complicate things a bit.

Cleanup

Let's right write a cleanup task in order not to leave tar.gz archives both on our local machine and on remote servers. The task can look like this:

...