Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2003 10:00:25 -0700
From:      Joshua Oreman <oremanj@webserver.get-linux.org>
To:        johann@broadpark.no
Cc:        questions@freebsd.org
Subject:   Re: Mirroring the Content of a Log File
Message-ID:  <20030618170025.GE34991@webserver.get-linux.org>
In-Reply-To: <20030618123639.3b229330.johann@broadpark.no>
References:  <20030618123639.3b229330.johann@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030618170025.GE34991>