Backup : Fix file size report.
This commit is contained in:
parent
249cb3cd69
commit
32d06272e6
|
@ -42,7 +42,9 @@ cd -
|
||||||
|
|
||||||
# Backup docker.
|
# Backup docker.
|
||||||
rm ${path_docker}/${dow}_*.tgz
|
rm ${path_docker}/${dow}_*.tgz
|
||||||
archive_fast docker/ && mv Docker_* ${path_docker}/ || notify 'Backup : Failed to save docker!'
|
archive_fast docker/
|
||||||
|
bupsize=$(/usr/bin/du -h Docker_* | awk '{print $1}')
|
||||||
|
mv Docker_* ${path_docker}/ || notify 'Backup : Failed to save docker!'
|
||||||
cd ${path_docker}
|
cd ${path_docker}
|
||||||
archive_prune Docker 7
|
archive_prune Docker 7
|
||||||
cd -
|
cd -
|
||||||
|
@ -51,6 +53,5 @@ cd -
|
||||||
sync
|
sync
|
||||||
|
|
||||||
# Notify completion & size.
|
# Notify completion & size.
|
||||||
bupsize=$(/usr/bin/du -h ${path_docker}/${dow}_*.tgz | awk '{print $1}')
|
|
||||||
notify_silent "Backup : Complete ${bupsize}."
|
notify_silent "Backup : Complete ${bupsize}."
|
||||||
echo "Backup : Complete ${bupsize}."
|
echo "Backup : Complete ${bupsize}."
|
||||||
|
|
Reference in a new issue