Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement