Scheduled backup of a file system.


 
Thread Tools Search this Thread
Operating Systems AIX Scheduled backup of a file system.
# 1  
Old 11-14-2005
Scheduled backup of a file system.

I have an IBM, P-series Intellistation running AIX5.1. I have installed an IBM DAT72 4mm tape drive. It is installed as an Other Scsi Device(ost). When I schedule a backup it fail's to run (input or output error). Does this device need an Auto mount of some kind? If I run a diagnostic test (for example), it will do the backup and will do all the incrementals for the week, but when I put a new tape in for the next week, the scheduled backup will fail.

Any thoughts?

Joe
# 2  
Old 11-14-2005
This is just kind of a "duct tape" temp fix but if you could just write a script that autoruns diagnostic test when the error for the backup fail pops up? Not sure if it will work, and even if it does it should only be for a short period of time until you can find the 'appropriate way' to fix the problem Smilie
# 3  
Old 11-16-2005
do you use cron to backup at times in the week ?


this is one you can use
=================
mt-f /dev/rmt0 rewind
find /your filesystems -print |backup -iqvf /dev/rmt0.1
#(.1 prevents rewind )
you can create a script that will backup a list of file systems


Restore
======
tctl -f /dev/rmt0 rewind

restore -qvf /dev/rmt0 will restore all files no the tape

Restore files (only)

mt -f /dev/rmt0 feof restore Move to the next on the tape
restore -qvf /dev/rmt0 /filesytems/frans.txt file restoe only this file

Note !! 1.restore -xdvqf /dev/rmt0 /home/my/tools
The -x flag tells restore to extract files by their file name. The -d tells restore to extract all the files and subdirectories in the /home/my/tools directory. File and directory names must be specified as they are displayed when using the -T flag. If the directories do not exist, they are created.
# 4  
Old 11-16-2005
Yes, I do use cron. Here is my entries:

0 22 * * 1,5 backup -0 -uf/dev/rmt1.1
0 22 * * 2-4 backup -1 -uf/dev/rmt1.1

I beleive the backup is not taking place, because the tape drive is either, not mounting or not recognizing that there is a mount.

For some reason, the input / output error is taking place because the tape drive is not being recognized at the time of the cron command. Even if I do a manual command, I get the same error.

When I do a diagnostic test on the tape drive, it is recognized and does pass all tests.

I am "new" to being responsible for the backup's. I had to buy and install a new tape drive, and am not sure if I am missing something very general.

Thanks for the response,
Joe
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Backup for NAS huge File system

Gents, I have NAS File System mounted in Solaris as \Sysapp with size 8 TB the problem once the backup stared it is impacting the performance of the OS. Do you have any idea how to can we backup this FS with fast scenario without impacting the OS. Backup type : Netbackup (3 Replies)
Discussion started by: AbuAliiiiiiiiii
3 Replies

2. Shell Programming and Scripting

Log file is not updating when I run shell scripts scheduled thru crontab

Hi Forum, Good Day! I have created an empty html file wtih permissoin 777 created shell script(with permission 777) , code is below. #=======================start============== . /data09/oracle/apps_st/appl/D_oraapp095.env rm -rf /home/mnp/Test_log.txt echo... (1 Reply)
Discussion started by: kartheekbk
1 Replies

3. AIX

Cloning a system via mksysb backup from one system and restore to new system

Hello All, I am trying to clone an entire AIX virtual machine to a new virtual machine including all partitions and OS.Can anyone help me on the procedure to follow? I am not really sure on how it can be done.Thanks in advance. Please use CODE tags for sample input, sample output, and for code... (4 Replies)
Discussion started by: gull05
4 Replies

4. Shell Programming and Scripting

Shell script to call Oracle archive backup script when file system reaches threshold value

Hello All, I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60% Need to identify the unique file system that reaches threshold value. ex: capacity ... (4 Replies)
Discussion started by: sasikanthdba
4 Replies

5. Solaris

How to take backup of ZFS file system on a tape drive?

Hi Guys, I want to take backup of a ZFS file system on tape drive. Can anybody help me with this? Thanks, Pras (0 Replies)
Discussion started by: prashant2507198
0 Replies

6. Solaris

how to restore backup from veritas vm in ufs file system

Hi all I have a DLT tape in that tape backup is there is in veritas volume format and i want to restore it in ufs file system how can i do it? right now i don't have veritas file system setup. i have only ufs file sysytem please help some production data is to be restore. backup was taken... (0 Replies)
Discussion started by: nikhil kasar
0 Replies

7. UNIX for Advanced & Expert Users

how to make a full system backup excluding data and restoring it to a new system

Hi, In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way : - Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies

8. AIX

Backup for GPFS file system

Unix people.. Backup for GPFS file system /dev/gpfs /application I have GPFS file system and I'd like to take backup for that file system to the tape I'm using this command Smitty fs + Backup a File System And I'm take the backup but this is will work if that gfs2 but I'm... (4 Replies)
Discussion started by: Mr.AIX
4 Replies

9. Shell Programming and Scripting

File system backup alert

Hi All, OS: AIX 5.3 64 bits Could anyone please share unix File system backup alert shell script which sends an alert message upon failure.. Thanks for your time! Regards, (0 Replies)
Discussion started by: a1_win
0 Replies

10. Shell Programming and Scripting

Conditional File Movement script scheduled using CRON job

Hi All, i am trying to automate a process and have to create a unix script like wise. I have a scenario in which i need to automate a file movement. Below are the steps i need to automate. 1. Check whether a file (Not Fixed name-Pattern search of file say 'E*.dat') is present in a... (2 Replies)
Discussion started by: imu
2 Replies
Login or Register to Ask a Question