Skip to content

Commit

Permalink
Merge branch 'main' of github.com:alfiosalanitri/backup-to-device
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiosalanitri committed Nov 8, 2022
2 parents 42ba3e3 + 03e63b9 commit 1b68268
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions backup-to-device
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ check_required_package() {

# get estimated backup size before start
backup_estimated_size() {
output=""
echo "Calculating backup size..."
total=0
while read -r line; do
size=$(sudo du -s $line | awk '{print $1}')
Expand Down Expand Up @@ -168,8 +168,9 @@ check_required_arguments 'exclude' $exclude_from

# start
start_script
backup_estimated_size & pid=$!
spinner "Calculating backup size..."

# calculate backup total space and free disk space for temporary files.
backup_estimated_size

# check if destination directory exists
if [ ! -d "${destination}" ]; then
Expand Down

0 comments on commit 1b68268

Please sign in to comment.