Anonymous ID: 105b33 April 12, 2018, 3:44 a.m. No.1010723   🗄️.is 🔗kun   >>0732 >>0740 >>0766 >>0770 >>0776

bash script for linuxfags/unixs to create backups of qanon.pub and qanonposts.com (should work in windows using msys2 to install relevant tools ie. bash/wget)

 

#!/usr/bin/env bashQANONPUB="qanon.pub"QANONPOSTSCOM="qanonposts.com"DATESTAMP=date +%Y_%m_%d_%sQDOC="$HOME/QDOC"QDOCTEMP="$QDOC/tmp"if [ ! -e $QDOC ]; then echo "creating Q folder" mkdir $QDOCfiif [ ! -e $QDOCTEMP ]; then echo "creating temp folder" mkdir $QDOCTEMPficd $QDOCTEMP# Fetch and mirror https:// qanon.pubecho ""echo "#######################################"echo " RETRIEVING QANON.PUB "echo "#######################################"wget -m -c -np "https:// $QANONPUB" >& /dev/nullif [ -e $QANONPUB ]; then tar -czf "$QANONPUB""$DATESTAMP".tar.gz $QANONPUB mv "$QANONPUB""$DATESTAMP".tar.gz .. rm -fr $QANONPUBelse echo "Unable to fetch and save $QANONPUB"fiif [ -e $QANONPUB ]; then rm -fr $QANONPUBfi# Fetch and mirror https:// qanonposts.comecho ""echo "#######################################"echo " RETRIEVING QANONPOSTS.COM "echo "#######################################"# Fetch and mirror https:// qanonposts.comwget -m -c -np "https:// $QANONPOSTSCOM" >& /dev/nullif [ -e $QANONPOSTSCOM ]; then tar -czf "$QANONPOSTSCOM""$DATESTAMP".tar.gz $QANONPOSTSCOM mv "$QANONPOSTSCOM""$DATESTAMP".tar.gz .. rm -fr $QANONPOSTSCOMelse echo "Unable to fetch and save $QANONPOSTSCOM"fiif [ -e $QANONPOSTSCOM ]; then rm -fr $QANONPOSTSCOMfiecho ""echo "#######################################"echo " DONE "echo "#######################################"echo ""