Advertisement
n8henrie

Backup Pastebin with cURL

Jan 4th, 2013
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. # Original post at http://n8henrie.com/2013/01/pastebin-backups-with-curl-and-launchd
  3. 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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement