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 | |
## Format Backup: | |
FORMAT=tgz | |
## Lokasi Backup | |
ZBACKUP=/srv/backup/ | |
## Nama Folder Backup Berdasarkan Tanggal Backup | |
DATE=`date +"%d%m%y"` |
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 | |
BACKUPDIR="/srv/backup/xxxxx"; | |
clear | |
echo "Retrieve all zimbra user name..." | |
USERS=`su - zimbra -c 'zmprov -l gaa | sort'`; |
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
su - zimbra -c "zmmailbox -z -m username postRestURL '//?fmt=tgz&resolve=reset' folder/file-location.tgz"; | |
## Example: su - zimbra -c "zmmailbox -z -m admin@example.com postRestURL '//?fmt=tgz&resolve=reset' /srv/backup/20150128/admin@example.com.tgz"; | |
## resolve = reset. This parameters will delete mailboxes existing on user and will be changed with mailbox backup. The reset parameter could be changed with skip, replace, modify. |
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
server { | |
listen 80; | |
server_name glibogor.or.id; | |
# redirect all urls to https | |
return 301 https://$server_name$request_uri; | |
} | |
server { |
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
#cloud-config | |
hostname: rancheros-99 | |
rancher: | |
network: | |
interfaces: | |
eth*: | |
dhcp: true | |
eth0: |
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
## Based on Ubuntu 16.04 LTS ## | |
#!/bin/bash | |
echo "### Repo Ubuntu 16.04 Kambing ###" | |
cp -v /etc/apt/sources.list /etc/apt/sources.list.orig | |
echo "deb http://kambing.ui.ac.id/ubuntu/ xenial main restricted universe multiverse | |
deb http://kambing.ui.ac.id/ubuntu/ xenial-updates main restricted universe multivers | |
deb http://kambing.ui.ac.id/ubuntu/ xenial-security main restricted universe multivers | |
deb http://kambing.ui.ac.id/ubuntu/ xenial-backports main restricted universe multivers | |
deb http://kambing.ui.ac.id/ubuntu/ xenial-proposed main restricted universe multiverse" > /etc/apt/sources.list |
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 -n "Waktu mulai : " ;date | |
for database in `cat dbmyisam.txt` ; do | |
mysqlhotcopy --addtodest --user=root --password=r\$h\$\%\!\$\*\)nj\)l\@\( $database /root/scripts/backupdb >> /root/scripts/backupdb/mysqlhotcopy.log | |
done | |
echo -n "Waktu selesai : " ;date |
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 "### Packages Apache Tomcat ###" | |
apt -y install default-jdk | |
update-alternatives --config java | |
echo JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre" >> /etc/environment | |
echo "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre | |
export PATH=$JAVA_HOME/bin:$PATH | |
export CATALINA_HOME=/opt/tomcat" >> ~/.bashrc | |
source ~/.bashrc | |
echo $JAVA_HOME |
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
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service [-] Error starting thread. | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service Traceback (most recent call last): | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 722, in run_service | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service service.start() | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/service.py", line 144, in start | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service self.manager.init_host() | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1137, in init_host | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service raise exception.PlacementNotConfigured() | |
2017-08-01 06:00:23.058 20891 ERROR oslo_service.service PlacementNotConfigured: This compute is not configured to talk to the placement service. Confi |
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
ceph pg dump | awk ' | |
/^pg_stat/ { col=1; while($col!="up") {col++}; col++ } | |
/^[0-9a-f]+\.[0-9a-f]+/ { match($0,/^[0-9a-f]+/); pool=substr($0, RSTART, RLENGTH); poollist[pool]=0; | |
up=$col; i=0; RSTART=0; RLENGTH=0; delete osds; while(match(up,/[0-9]+/)>0) { osds[++i]=substr(up,RSTART,RLENGTH); up = substr(up, RSTART+RLENGTH) } | |
for(i in osds) {array[osds[i],pool]++; osdlist[osds[i]];} | |
} | |
END { | |
printf("\n"); | |
printf("pool :\t"); for (i in poollist) printf("%s\t",i); printf("| SUM \n"); | |
for (i in poollist) printf("--------"); printf("----------------\n"); |
OlderNewer