bashup::set-retention_array function fixes
This commit is contained in:
parent
7f413eda04
commit
ab487bdc80
|
@ -7,8 +7,7 @@
|
|||
# load include file
|
||||
source $(dirname $0)/bashup.sh
|
||||
|
||||
bashup::set_existing_backups
|
||||
bashup::set_retention_array
|
||||
bashup::set-retention_array
|
||||
|
||||
# create backup for today
|
||||
if [[ " ${retention_array[@]} " =~ " ${today} " ]]; then
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
# load include file
|
||||
source $(dirname $0)/bashup.sh
|
||||
|
||||
bashup::set_existing_backups
|
||||
bashup::set_retention_array
|
||||
bashup::set-retention_array
|
||||
|
||||
# create backup for today
|
||||
if [[ " ${retention_array[@]} " =~ " ${today} " ]]; then
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
# load include file
|
||||
source $(dirname $0)/bashup.sh
|
||||
|
||||
bashup::set_existing_backups
|
||||
bashup::set_retention_array
|
||||
bashup::set-retention_array
|
||||
|
||||
# create backup for today
|
||||
if [[ " ${retention_array[@]} " =~ " ${today} " ]]; then
|
||||
|
|
|
@ -92,7 +92,9 @@ if [ ! -z "$backup" ]; then
|
|||
fi
|
||||
else
|
||||
# output list of backups (dates)
|
||||
ls -1 $backup_storage_dir | grep -v lost+found
|
||||
for existing_backup in "${existing_backups[@]}"; do
|
||||
echo $existing_backup
|
||||
done
|
||||
fi
|
||||
|
||||
bashup::unmount_storage_dir
|
||||
|
|
Loading…
Reference in New Issue
Block a user