Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to display backup information into a file

Status
Not open for further replies.

jalge2

Technical User
Feb 5, 2003
105
US
Hi all, I'm creating a script that is showing all of the directories in a certain VG into a file. After the backup is done, it shows certain information, such as the date that the tape was last used for backup. I need this information in my file. How do I get it in there?

The main script I am using is

restore -Tpqvf /dev/rmt0.1 > rootvglog

Thanks for the help
 
Try:

restore -Tpqvf /dev/rmt0.1 > rootvglog 2>&1

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
aixmurderer...That worked great, but now my question is why? What does the 2>&1 mean and how did it put the information back into the file that I appended to in the first place?
 
It redirects stderr to stdout, which then in your case you redirected to a file.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top