[NCLUG] Oops,
Steve Wolf
stevewolf6 at gmail.com
Thu Feb 20 19:54:18 MST 2014
On Fri, Feb 21, 2014 at 11:41 AM, Zak Smith <zak at computer.org> wrote:
> Just use --exclude=PATTERN from the tar man page. Alternatively look
> at --one-file-system. Either way is a good way to do it.
>
I agree. --exclude makes your life much easier. --recursion is the
default behavior in tar, so I'd suggest
#!/bin/sh
pushd /home
tar cvzpPf /mnt/UserBackup/BKkerrym2.tar.gz \
--exclude=kerrym2/KerrysStuff \
--exclude=kerrym2/Pictures \
--exclude=kerrym2/Downloads \
--exclude=kerrym2/.wine/drive_c \
kerrym2
popd
echo -e "\nBKkerrym2.sh done"
return
Regards,
Steve
More information about the NCLUG
mailing list