two questions
Mark Teel
mark at teel.ws
Thu Jun 24 20:26:29 PDT 2004
Here is a script I use to backup my linux system:
#!/bin/sh
MEDIUM=/mnt/dmzserv/share/mark/BACKUP/webserver
echo "Creating system backup on $MEDIUM as dmz2-sys-backup-<date>.tar.gz..."
tar -zcvpf $MEDIUM/dmz2-sys-backup-`date '+%d-%B-%Y'`.tar.gz \
--directory / --exclude=mnt --exclude=proc --exclude=share .
echo "...done"
This creates a system backup starting in "/", excluding mnt, proc and
share, with the file name including the date.
MST
Michael Sharp wrote:
>I'm having a brain freeze tonight and apparently forgot some
>basic UNIX commands..
>
>what is the command to remove the file "--directory"
>
>rm *directory* = nope
>rm "*directory*" = nope
>rm \-\-\directory = nope
>rm -i * = nope and dosent even see the file
>
>Also, if I'm in / and want to tar the entire filesystem
>EXCLUDING the
>directory jail ( /jail ) what would be the switches to tar?
>
>Dana
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>
More information about the freebsd-questions
mailing list