This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo `date +%F\ %T`: Removing $1 backup from `date -d "7 days ago" "+%Y-%m-%d"` >> /var/log/tarsnap/backupscript.log | |
/usr/local/bin/tarsnap -d -f $1-`date -d "7 days ago" "+%Y-%m-%d"` &>> /var/log/tarsnap/backupscript.log | |
echo `date +%F\ %T`: Completed removing $1 backup from `date -d "7 days ago" "+%Y-%m-%d"` >> /var/log/tarsnap/backupscript.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
echo `date +%F\ %T`: Beginning back up of $2 >> /var/log/tarsnap/backupscript.log | |
/usr/local/bin/tarsnap -c -f $1-`date +%F` $2 &>> /var/log/tarsnap/backupscript.log | |
echo `date +%F\ %T`: Completed back up of $2 >> /var/log/tarsnap/backupscript.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Installs tarsnap client on Debian and Ubuntu | |
# | |
# You'll need to setup an account at | |
# http://www.tarsnap.com | |
# and load it with some funds | |
# | |
# Make sure you run this as root | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Active Internet connections (servers and established) | |
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name | |
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 0 979192 23267/lt-nghttpx | |
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 0 905842 3037/lt-nghttpd | |
tcp 0 0 127.0.0.2:80 0.0.0.0:* LISTEN 0 875607 25471/nginx | |
tcp 0 0 127.0.0.2:80 127.0.0.1:41485 TIME_WAIT 0 0 - | |
tcp6 0 0 :::443 :::* LISTEN 0 875606 25471/nginx | |
tcp6 0 0 :::8080 :::* LISTEN 0 905843 3037/lt-nghttpd | |
tcp6 0 0 :::80 :::* LISTEN 0 875605 25471/nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================== | |
Request over IPv4 | |
================== | |
curl -v -k -4 https://cdntest.org:8443/ | |
* Adding handle: conn: 0x7fc21100c400 | |
* Adding handle: send: 0 | |
* Adding handle: recv: 0 | |
* Curl_addHandleToPipeline: length: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dig shiftyplatypus.com | |
; <<>> DiG 9.8.3-P1 <<>> shiftyplatypus.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26231 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;shiftyplatypus.com. IN A |
NewerOlder