tar --exclude-from
by milomak from LinuxQuestions.org on (#5BW21)
i have chrooted into my debian install and then run this command
Code:time tar -cvpJf --exclude-from /root/exclude.tar debian-backup.xz /where
# cat /root/exclude.tar
Code:
/debian-backup.xz
/proc
/tmp
/mnt
/dev
/sys
/run
/media
/var/log
/var/cache/apt/archives
/usr/src/linux-headers*
/home/*/.gvfs
/home/*/.cache
/home/*/.local/share/Trash
/var/lib/flatpak/
/var/lib/snapd
/usr/share/games/flightgear/yet part of the tar verbose had
Code:/run/media/milomak/WDPassport/.Trashes/501/profiles/brave/Profile 1/Code Cache/js/12418ee357fbb22d_0
/run/media/Milomak/WDPassport/.Trashes/501/profiles/brave/Profile 1/Code Cache/js/1242ba7bd1c5bc5b_0why is the exclude file being ignored?


Code:time tar -cvpJf --exclude-from /root/exclude.tar debian-backup.xz /where
# cat /root/exclude.tar
Code:
/debian-backup.xz
/proc
/tmp
/mnt
/dev
/sys
/run
/media
/var/log
/var/cache/apt/archives
/usr/src/linux-headers*
/home/*/.gvfs
/home/*/.cache
/home/*/.local/share/Trash
/var/lib/flatpak/
/var/lib/snapd
/usr/share/games/flightgear/yet part of the tar verbose had
Code:/run/media/milomak/WDPassport/.Trashes/501/profiles/brave/Profile 1/Code Cache/js/12418ee357fbb22d_0
/run/media/Milomak/WDPassport/.Trashes/501/profiles/brave/Profile 1/Code Cache/js/1242ba7bd1c5bc5b_0why is the exclude file being ignored?