Clean up some comments

dev
hkbakke 2016-12-22 23:56:38 +01:00
parent f3f4b4f937
commit d8153d4add
1 changed files with 4 additions and 7 deletions

View File

@ -18,8 +18,6 @@ borg_backup () {
EXCLUDE_CMD+=( --exclude "$EXCLUDE" ) EXCLUDE_CMD+=( --exclude "$EXCLUDE" )
done done
# Backup all of /home and /var/www except a few
# excluded directories
$BORG create --info --stats \ $BORG create --info --stats \
--compression lz4 \ --compression lz4 \
--numeric-owner \ --numeric-owner \
@ -29,10 +27,9 @@ borg_backup () {
} }
borg_prune () { borg_prune () {
# Use the `prune` subcommand to maintain 7 daily, 4 weekly and 6 monthly # Use --prefix to limit pruning to this hostname's archives only, just in
# archives of THIS machine. --prefix `hostname`- is very important to # case you for some reason use the same repository for several hosts (not
# limit prune's operation to this machine's archives and not apply to # recommended)
# other machine's archives also.
$BORG prune --info --stats --list \ $BORG prune --info --stats --list \
--prefix "$(hostname)-" \ --prefix "$(hostname)-" \
--keep-daily=$KEEP_DAILY \ --keep-daily=$KEEP_DAILY \
@ -47,7 +44,7 @@ borg_verify () {
} }
borg_unlock () { borg_unlock () {
# Use if borg backup is not shut down cleanly # Use if borgbackup is not shut down cleanly and complains about lock files
$BORG break-lock "${REPO}" $BORG break-lock "${REPO}"
} }