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 | |
PATH=/usr/bin:/usr/sbin | |
# Установка переменных | |
SITE_DIRECTORY="/var/www/mysite.ru" # Путь к директории сайта | |
BACKUP_DIRECTORY="/opt/git/site" # Путь к директории для сохранения бэкапов | |
EMAIL_RECIPIENT="[email protected]" # Адрес получателя электронной почты | |
MAX_DIFF_SIZE=$((10 * 1024)) # 10 Кб в байтах | |
# Создание временной директории для выполнения операций |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: VPC Network Stack | |
Metadata: {} | |
Mappings: {} | |
Conditions: {} | |
Outputs: {} | |
Parameters: | |
CidrBlock: | |
AllowedPattern: '((\d{1,3})\.){3}\d{1,3}/\d{1,2}' | |
Default: 10.0.0.0/16 |