diff --git a/app/bin/home/backup b/app/bin/home/backup index 242eb55..03f91de 100755 --- a/app/bin/home/backup +++ b/app/bin/home/backup @@ -42,7 +42,8 @@ cd - # Backup docker. rm ${path_docker}/${dow}_*.tgz -archive_fast docker/ && mv Docker_* ${path_docker}/ || notify 'Backup : Failed to save docker!' +local docker_name=$(archive_fast docker/) +mv Docker_* ${path_docker}/ || notify 'Backup : Failed to save docker!' cd ${path_docker} archive_prune Docker 7 cd - @@ -51,6 +52,6 @@ cd - sync # Notify completion & size. -bupsize=$(/usr/bin/du -h ${path_docker}/${dow}_*.tgz | awk '{print $1}') +bupsize=$(/usr/bin/du -h ${path_docker}/${docker_name} | awk '{print $1}') notify_silent "Backup : Complete ${bupsize}." echo "Backup : Complete ${bupsize}."