Mirroring the Content of a Log File
Joshua Oreman
oremanj at webserver.get-linux.org
Wed Jun 18 09:58:02 PDT 2003
You need to shorten your From: line, man!
On Wed, Jun 18, 2003 at 12:36:39PM +0200 or thereabouts, -- at 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 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