This file contains hidden or 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 | |
# NOTE: | |
# Make sure that the value of Name, Type, TTL are the same with your DNS Record Set | |
HOSTED_ZONE_ID="ZCOKAAJ9UMS0T" | |
DNS_NAME="\\\\052.dev1.danwerspb.devops.rebrain.srwx.net" | |
RECORD_TYPE="A" | |
TTL=300 | |
RESOURCE_VALUE="92.53.91.116" |
This file contains hidden or 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
TIME="date +%Y%m%d_%H%M" | |
2 6 * * * rsync -av --delete ~/Code /home/backup/ > /home/backup/backup_log_$($TIME) 2>&1 | |
9 9 * * 1-6 cd /home/dp/Code/mashtab/veil-repo/devops/veil-vagrantfile; vagrant box update |
This file contains hidden or 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
locale-gen en_US.UTF-8 | |
export LC_ALL="en_US.UTF-8" | |
sudo dpkg-reconfigure locales | |
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 |
This file contains hidden or 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 | |
#set -x | |
COUNT_OLD_TAR=10 | |
# example name backup_20170404_1553.tar.gz | |
TIME=$(date +%Y%m%d_%H%M%S) | |
FILENAME=backup_$TIME.tar.gz | |
SRCDIR=/var/lib/jenkins | |
#DESTDIR=~/jenkins_backup | |
#cd $DESTDIR |