Backup : Fix file size report.
This commit is contained in:
parent
249cb3cd69
commit
0502b1eb04
|
@ -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}."
|
||||
|
|
Reference in a new issue