Skip to content

Instantly share code, notes, and snippets.

@n8henrie
Created March 17, 2013 16:30
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 n8henrie/5182302 to your computer and use it in GitHub Desktop.
Save n8henrie/5182302 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Original post at http://n8henrie.com/2013/01/pastebin-backups-with-curl-and-launchd
curl -c "/tmp/pastebinCookie.txt" -d "submit_hidden=submit_hidden&user_name=[username]&user_password=[password]&submit=Login" "http://pastebin.com/login" && curl -b "/tmp/pastebinCookie.txt" "http://pastebin.com/backup.php" -o "/Users/[pathToBackupLocation]/pastebinBackup.zip" && rm "/tmp/pastebinCookie.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment