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 | |
KEEP_DAYS=15 | |
VG="vg" # LVM volume group we are snapshoting | |
LV="data-volume-name" # Name of LVM-volume to take a snapshot of | |
BACKUP_PREFIX="backup-volume-prefix-" # Prefix of snapshot volume name. | |
SIZE=40G # Amount of disk space to allocate for the snapshot | |
# Create new snapshot |