AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Using Backup (and restore)

    Posted Wed July 08, 2009 04:15 AM

    Originally posted by: SystemAdmin


    Hi Guys,
    I am administering a server which has a backup script writtent a while ago. I'm just doing a test recovery and can't seem to find the second data set.
    I will start with the backup script.

    #Get the list of directories to backup
    APPSBACKUP_LIST="./orclprod.u01 ./orclprod.u02
    #for each dir backup to tape
    for BACKUP_LIST in ${APPSBACKUP_LIST}
    do
    find ${BACKUP_LIST} -print | backup -ivqf ${TAPE} >> ${LOGFILE}.${MOUNT}
    done
    My problem is i am now trying restore -Tvf /dev/rmt0.1 (the backup device) and it's only listing the first dir in the APPSBACKUP_LIST.
    I tried fast forwarding the tape using tctl fsf 1 (or 2) (and fsr) and i get a end of file when running the retore command from there.

    Are my backups working?
    I have a bad feeling in my stomach :/

    Thanks
    P
    #AIX-Forum


  • 2.  Re: Using Backup (and restore)

    Posted Wed July 08, 2009 07:59 AM

    Originally posted by: CRM


    What is the $TAPE variable set to here?

    What does the logfile say for a backup that previously ran?

    I think the for loop logic is correct, I have to admit I have not tried the backup command as below.

    I take it that the missing quotes etc are all correct in the script in reality?

    regards

    Chris
    #AIX-Forum


  • 3.  Re: Using Backup (and restore)

    Posted Wed July 08, 2009 08:00 PM

    Originally posted by: SystemAdmin


    Yeah this is just an example of the logic and backup command.
    the Tape variable is set to /dev/rmt0.1 (don't rewind) so it should work.

    The log file didn't work last night because the tape is buggered. I will get a new tape and try again tonight.

    Have you got any examples of scripts you use that could do the same job or do you use the likes of nim?

    Cheers
    P
    #AIX-Forum


  • 4.  Re: Using Backup (and restore)

    Posted Fri July 10, 2009 11:46 AM

    Originally posted by: CRM


    No scripts I am afraid as we do mksysb to NIM server and then use TSM for files.

    If you try a new tape post the relevant parts of the log file and we can take another look.

    regards

    Chris
    #AIX-Forum