Skip to content

Commit

Permalink
Merge branch 'release/3.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinus52 committed Jun 19, 2017
2 parents 02557d2 + 762f2e8 commit a1b85da
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
3.3.0
6 changes: 6 additions & 0 deletions core/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ OLIX_OPTION_HELP=false
OLIX_OPTION_LIST=false


###
# Code retour global du script
##
OLIX_CODE_RETURN=0


###
# Variable contenant une valeur de retour d'une fonction
##
Expand Down
4 changes: 2 additions & 2 deletions olixsh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ fi


###
# Sortie sans erreur
# Sortie avec code retour global
##
die 0
die $OLIX_CODE_RETURN
18 changes: 14 additions & 4 deletions utils/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,35 @@ function Backup.path()
}


###
# Purge des anciens dumps
# @param $1 : Prefix du fichier
##
function Backup.purge()
{
debug "Backup.purge ($1)"
OLIX_BACKUP_FILE_PREFIX=$1

utils_backup_purge || return 1
return 0
}


###
# Finalise la sauvegarde d'un fichier -> Compression -> transfert FTP -> Purge
# @param $1 : Nom du fichier sauvegardé
# @pâram $2 : Prefix du fichier
##
function Backup.continue()
{
debug "Backup.continue ($1)"
OLIX_BACKUP_FILE=$1
OLIX_BACKUP_FILE_PREFIX=$2

utils_backup_compress || return 1

utils_backup_ftp || return 1

utils_backup_move || return 1

utils_backup_purge || return 1

return 0
}

Expand Down

0 comments on commit a1b85da

Please sign in to comment.