mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 10:29:00 +02:00
Sorted list of backup files
This commit is contained in:
@@ -245,7 +245,7 @@ restore_iobroker() {
|
|||||||
|
|
||||||
# list backup files
|
# list backup files
|
||||||
backup_dir="/opt/iobroker/backups"
|
backup_dir="/opt/iobroker/backups"
|
||||||
backup_files=($(find $backup_dir -type f))
|
backup_files=($(find $backup_dir -type f | sort))
|
||||||
backup_count=${#backup_files[@]}
|
backup_count=${#backup_files[@]}
|
||||||
|
|
||||||
if [[ $backup_count -eq 0 ]]; then
|
if [[ $backup_count -eq 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user