From owner-freebsd-questions@FreeBSD.ORG Wed Jun 18 09:58:01 2003 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 E7A5537B401 for ; Wed, 18 Jun 2003 09:58:01 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 385A943F75 for ; Wed, 18 Jun 2003 09:58:01 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 35408 invoked by uid 1001); 18 Jun 2003 17:00:25 -0000 Date: Wed, 18 Jun 2003 10:00:25 -0700 From: Joshua Oreman To: johann@broadpark.no Message-ID: <20030618170025.GE34991@webserver.get-linux.org> References: <20030618123639.3b229330.johann@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030618123639.3b229330.johann@broadpark.no> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: Mirroring the Content of a Log File 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: Wed, 18 Jun 2003 16:58:02 -0000 You need to shorten your From: line, man! On Wed, Jun 18, 2003 at 12:36:39PM +0200 or thereabouts, --@FreeBSD.ORG seemed to write: > > Hi! > > I have a log file containing /path/to/filenames of all my important configuration files: > > # cat log.FILES.ninja > > +----- /sys/i386/conf/AEGIS > | > +----- /usr/home/johann/.tcshrc > +----- /usr/home/johann/.fetchmailrc > +----- /usr/home/johann/.gtkrc > +----- /usr/home/johann/.login > +----- /usr/home/johann/.mailcap > +----- /usr/home/johann/.mime.types > +----- /usr/home/johann/.muttrc > +----- /usr/home/johann/.signature > +----- /usr/home/johann/.xinitrc > +----- /usr/home/johann/.lftp/settings > +----- /usr/home/johann/.wine/config > > [the rest continues like that] > > How do I mirror all the files and directories in this file into ~/backup? If those directory formatting things are really in the file, and you don't have any files with hyphens in their name: # cat log.FILES.ninja | tr -d '+| -' | cpio -p /backup If the directory formatting things aren't in the file: # cat log.FILES.ninja | cpio -p /backup Easy. You just have to know where to look :-) -- Josh > > Thanks! > ==j > _______________________________________________ > 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"