Re: using tar and Storing backup log and list to seperate files.
From: Bill Marcum (bmarcum_at_iglou.com)
Date: 08/07/03
- Previous message: Andreas Janssen: "Re: Modem Install"
- In reply to: DukeNM: "using tar and Storing backup log and list to seperate files."
- Next in thread: DukeNM: "Re: using tar and Storing backup log and list to seperate files."
- Reply: DukeNM: "Re: using tar and Storing backup log and list to seperate files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 7 Aug 2003 08:28:41 -0400
On 6 Aug 2003 22:46:28 -0700, DukeNM
<tridentadm@netscape.net> wrote:
> Hi,
>
> I seem to be a little stuck, with no solution.
> I am making backups of data to tapes and using simple tar commands.
>
> what i really want is two seperate files
> 1) for Logs : mylogs
> 2) for files : mylist
> Logs stores the normal stuff like some messages sent to stdout when
> tar is invoked, then date, time, filesize etc.
> List should store only the list of files that have been backed up.
>
> I found out that
> tar -cv -R --totals -V MYFILE -f myfile.tar /root/mailz/ > tritar.list
> gives me what i want for the list
>
> and
> tar -c -R --totals -V MYFILE -f myfile.tar /root/mailz/ 2>&1 |tee -a
> tritar.log
> gives me what i want for the logs
>
> but this simply means that I have to invoke the command twice simply
> to send the output to two diff. files. doesnt make sense to do this.
> instead i wanted it to kind of merge, and send the -v parameter
> redirect to list and the other to the log.
>
> hope i am making sense. :)
tar -c -R --totals -V MYFILE -f myfile.tar /root/mailz >tritar.list \
2>tritar.err
cat tritar.list tritar.err >> tritar.log
-- Excuse me, but didn't I tell you there's NO HOPE for the survival of OFFSET PRINTING?
- Previous message: Andreas Janssen: "Re: Modem Install"
- In reply to: DukeNM: "using tar and Storing backup log and list to seperate files."
- Next in thread: DukeNM: "Re: using tar and Storing backup log and list to seperate files."
- Reply: DukeNM: "Re: using tar and Storing backup log and list to seperate files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|