0f901f4f78a148a86026b96b791a1d689849d8ab
- Author
- zertrin <zertrin@gmail.com>
- Committer
- zertrin <zertrin@gmail.com>
- Date
Message
Always exclude /proc from Source Disk Use Information
Diff
1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index fbc3060b602d2afa05ef73642b7af13c5c801daa..1d8a09b76f3cab301f574652bdf750f662702322 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -469,6 +469,8 @@ get_source_file_size()
6 {
7 echo "-----------[ Source Disk Use Information ]-----------" >> "${LOGFILE}"
8
9+ # FIXME: doesn't work properly with include/exclude-filelists (issue #101)
10+
11 # Patches to support spaces in paths-
12 # Remove space as a field separator temporarily
13 OLDIFS=$IFS
14@@ -487,6 +489,9 @@ get_source_file_size()
15 ;;
16 esac
17
18+ # always exclude /proc
19+ DUEXCLIST="/proc\n"
20+
21 for exclude in "${EXCLIST[@]}"; do
22 DUEXCLIST="${DUEXCLIST}${exclude}\n"
23 done