Mirroring the Content of a Log File

2003-06-18 Thread --

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?

Thanks!
==j
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mirroring the Content of a Log File

2003-06-18 Thread Joshua Oreman
You need to shorten your From: line, man!

On Wed, Jun 18, 2003 at 12:36:39PM +0200 or thereabouts, [EMAIL PROTECTED] 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
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]