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
# Manages swapspace on a node. | |
# | |
# This version is based on https://gist.github.com/philfreo/6576492 and that | |
# again is based on https://gist.github.com/Yggdrasil/3918632 | |
# | |
# Parameters: | |
# - $ensure Allows creation or removal of swapspace and the corresponding file. | |
# - $swapfile Defaults to /mnt which is a fast ephemeral filesystem on EC2 instances. | |
# This keeps performance reasonable while avoiding I/O charges on EBS. | |
# - $swapsize Size of the swapfile in MB. Defaults to memory size. |
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
:: ###### BACK-UP JOB ###### | |
@ECHO OFF | |
:: Set the constants | |
SET BACKUP_DIR=C:\path\to\_backup | |
SET TEMP_DIR=%BACKUP_DIR%\TEMP | |
SET TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2% | |
SET ARCHIVE_DIR=%BACKUP_DIR%\%TODAY% | |
SET WWWROOT_NAME="ProjectName" | |
SET WWWROOT_SOURCE=C:\path\to\wwwroot |