[NCLUG] Oops,

Zak Smith zak at computer.org
Thu Feb 20 19:41:11 MST 2014


Just use --exclude=PATTERN from the tar man page. Alternatively look
at --one-file-system.   Either way is a good way to do it.  

What you are doing is a kludge.

The unmounts probably fail because the filesystems are in use by some
process.


On Thu, Feb 20, 2014 at 07:15:55PM -0700, Kerry Miller wrote:
> Hi People,
>
> I didn't suppose this groups email would strip the attachments from
> my email.
>
> The shell script:
>
> !# /bin/bash
> # file: BKkerrym2.sh
>
> umount /home/kerrym2/KerrysStuff
> umount /home/kerrym2/Pictures
> umount /home/kerrym2/Downloads
> umount /home/kerrym2/.wine/drive_c
>
> cd /home
> tar --recursion -zvcpPf /mnt/UserBackup/BKkerrym2.tar.gz kerrym2
>
> mount /home/kerrym2/KerrysStuff
> mount /home/kerrym2/Pictures
> mount /home/kerrym2/Downloads
> mount /home/kerrym2/.wine/drive_c
>
> cd /root
> echo
> echo BKkerrym2.sh done
> return
>
> Now this is the shell script I was asking about.  Not all the
> unmounts happen.  My first guess is I need a way to wait for each to
> finish before I execute the next one.
>
> --
> Kerry N0WIQ
> My web site URL is:
> http://mywebpages.comcast.net/n0wiq
>
> _______________________________________________
> NCLUG mailing list       NCLUG at lists.nclug.org
>
> To unsubscribe, subscribe, or modify
> your settings, go to:
> http://lists.nclug.org/mailman/listinfo/nclug

--
# Zak Smith    mobile 970-232-4468



More information about the NCLUG mailing list