From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 03:26:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3E8D16A4CF for ; Fri, 25 Jun 2004 03:26:29 +0000 (GMT) Received: from mail.teel.ws (teel.ws [209.151.109.182]) by mx1.FreeBSD.org (Postfix) with SMTP id 5E94543D2F for ; Fri, 25 Jun 2004 03:26:28 +0000 (GMT) (envelope-from mark@teel.ws) Received: (qmail 10683 invoked by uid 513); 25 Jun 2004 03:26:22 -0000 Received: from mark@teel.ws by dmz1 by uid 508 with qmail-scanner-1.22-st-qms Clear:RC:0(192.168.0.110):SA:0(0.0/4.0):. Processed in 0.627296 secs); 25 Jun 2004 03:26:22 -0000 X-Spam-Status: No, hits=0.0 required=4.0 X-Antivirus-MYDOMAIN-Mail-From: mark@teel.ws via dmz1 X-Antivirus-MYDOMAIN: 1.22-st-qms (Clear:RC:0(192.168.0.110):SA:0(0.0/4.0):. Processed in 0.627296 secs Process 10674) Received: from unknown (HELO teel.ws) (mark@teel.ws@192.168.0.110) by mail.teel.ws with SMTP; 25 Jun 2004 03:26:22 -0000 Message-ID: <40DB9B57.3050307@teel.ws> Date: Thu, 24 Jun 2004 22:26:15 -0500 From: Mark Teel User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Sharp References: <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> In-Reply-To: <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: two questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 03:26:29 -0000 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-.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@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >