Skip to content

Instantly share code, notes, and snippets.

@JburkeRSAC
Last active September 4, 2015 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JburkeRSAC/0e914496e609fbd52427 to your computer and use it in GitHub Desktop.
Save JburkeRSAC/0e914496e609fbd52427 to your computer and use it in GitHub Desktop.
#!/bin/bash
# To Do:
# * Prompt user for IP
# * Prompt user for target directory
# * Make final filename a variable and prompt
# * [OPTIONAL]: Make the script print ASCII art & play obnoxious music
# $1 = username@ip for ssh machine to retrieve rar from without creating a copy on machine
# $2 = Target directory to tar copy of
# $3 = Directory to save tar to on local machine
ssh -n $1 'tar zcvf - ~/.thunderbird' | cat - > $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment