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
@echo off | |
setlocal | |
set year=%date:~6,4% | |
set month=%date:~3,2% | |
set day=%date:~0,2% | |
set backup_path=D:\backup\postgres | |
set pg_sql=C:\"Program Files"\PostgreSQL\9.4.2-1.1C\bin\psql.exe | |
set pg_dump=C:\"Program Files"\PostgreSQL\9.4.2-1.1C\bin\pg_dump.exe |
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 | |
# Скрипт для автоматического создания хостов на основании | |
# списка директорий в ~/Sites/*.dev | |
SITES_DIR=/Users/ezyuskin/Sites/ | |
APACHE_CONFIG_DIR=/etc/apache2/other/ | |
DOMAIN_SUFFIX=dev | |
APACHECTL=`which apachectl` | |
[ -f ~/.makeapachehosts ] && . ~/.makeapachehosts |
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 | |
RET_ARR=() | |
UNAME=`uname` | |
DEBUG=0 | |
IPTABLES=`which iptables` | |
IPFW="/usr/bin/ipfw" | |
RULES_FILE=/etc/firewall.rules | |
LOG_FILE=/var/log/firewall.log | |
SAVE=yes |
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 | |
RULES_FILE=/etc/backup.rules | |
HOSTNAME=`hostname` | |
BACKUP_DIRECTORY="/root/backup" | |
BACKUP_FILE_NAME="`date +%d-%m-%Y`.tgz" | |
[ -f "~/.backuprc" ] && ~/.backuprc | |
[ ! -d "$BACKUP_DIRECTORY" ] && mkdir -p $BACKUP_DIRECTORY |