1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-15 04:03:41 +01:00

More detailled rotation logs

This commit is contained in:
deajan 2018-09-30 17:11:18 +02:00
parent f0eee8897f
commit 83aa596568

View File

@ -7,7 +7,7 @@ PROGRAM="obackup"
AUTHOR="(C) 2013-2018 by Orsiris de Jong" AUTHOR="(C) 2013-2018 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr" CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
PROGRAM_VERSION=2.1-RC1 PROGRAM_VERSION=2.1-RC1
PROGRAM_BUILD=2018093006 PROGRAM_BUILD=2018093007
IS_STABLE=no IS_STABLE=no
#### Execution order #__WITH_PARANOIA_DEBUG #### Execution order #__WITH_PARANOIA_DEBUG
@ -1755,11 +1755,11 @@ function RotateBackups {
__CheckArguments 2 $# "$@" #__WITH_PARANOIA_DEBUG __CheckArguments 2 $# "$@" #__WITH_PARANOIA_DEBUG
Logger "Rotating backups in [$backupPath] for [$rotateCopies] copies." "NOTICE"
if [ "$BACKUP_TYPE" == "local" ] || [ "$BACKUP_TYPE" == "pull" ]; then if [ "$BACKUP_TYPE" == "local" ] || [ "$BACKUP_TYPE" == "pull" ]; then
Logger "Rotating local backups in [$backupPath] for [$rotateCopies] copies." "NOTICE"
_RotateBackupsLocal "$backupPath" "$rotateCopies" _RotateBackupsLocal "$backupPath" "$rotateCopies"
elif [ "$BACKUP_TYPE" == "push" ]; then elif [ "$BACKUP_TYPE" == "push" ]; then
Logger "Rotating remote backups in [$backupPath] for [$rotateCopies] copies." "NOTICE"
_RotateBackupsRemote "$backupPath" "$rotateCopies" _RotateBackupsRemote "$backupPath" "$rotateCopies"
fi fi
} }