File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ sleep 1
61
61
printf " %b" " \e[1mBacking up system and user files...\e[0m\n"
62
62
63
63
# TODO: dialog output
64
- # if (tar -cf - "${backuppaths[@]}" | pv -s $(du -cb "${backuppaths[@]}" | tail -1 | awk '{print $1}') | gzip --force > archive.tar.gz) 2>&1 | dialog --gauge "Backing up your files..." 7 70; then
64
+ # if (tar -cf - "${backuppaths[@]}" --exclude="$backuplocation" | pv -s $(du -cb "${backuppaths[@]}" | tail -1 | awk '{print $1}') | gzip --force > archive.tar.gz) 2>&1 | dialog --gauge "Backing up your files..." 7 70; then
65
65
#
66
66
67
- if tar -cf - " ${backuppaths[@]} " | pv -s $( du -cb " ${backuppaths[@]} " | tail -1 | awk ' {print $1}' ) | gzip --force > $backuplocation /backup-files-$today .tar.gz ; then
67
+ if tar -cf - " ${backuppaths[@]} " --exclude= " $backuplocation " | pv -s $( du -cb " ${backuppaths[@]} " | tail -1 | awk ' {print $1}' ) | gzip --force > $backuplocation /backup-files-$today .tar.gz ; then
68
68
printf " %b" " \e[31mSystem and user files backup: \e[32mdone.\e[0m\n"
69
69
else
70
70
printf " %b" " \e[31mError: Could not backup files.\e[0m\n" && exit 0
You can’t perform that action at this time.
0 commit comments