The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Backup script dan86 Shell Programming and Scripting 1 10-29-2007 05:47 PM
A backup script pascal Shell Programming and Scripting 2 09-09-2005 05:53 AM
DB2 Backup Script jyoung UNIX for Dummies Questions & Answers 0 06-13-2005 09:59 AM
Backup Script geek4sur AIX 7 05-24-2005 07:31 AM
Help with a backup script SemperFi UNIX for Dummies Questions & Answers 5 07-22-2004 08:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-13-2008
Registered User
 

Join Date: Apr 2008
Posts: 61
Backup script - HELP :(

Hi All,

Can anyone tell what this script does?

I have a webserver linux box. The tech has left the company and never tell us if the backup tape is running or not.
I'm newbie to linux and try to investigate if we have backup running or not.

I did run : "mt -f /dev/tape status" command and the result is:

SCSI 2 tape drive:
File number=28, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x40 (no translation).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN

I try to see what files has been backup up. But because i'm a newbie, i don't know how to find it.
I did some reading and some poeple use "TAR" method. But i don't think my webserver uses "TAR" method.

I found this script below on "ROOT" folder. Not really understand

#!/bin/bash

/sbin/dump -0ua /backup
/sbin/dump -0ua /var
/sbin/dump -0ua /home
/sbin/dump -0ua /
/sbin/dump -0ua /logs
/sbin/dump -0ua /boot


Please help me I'm stuck
Reply With Quote
Forum Sponsor
  #2  
Old 05-13-2008
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 917
See man dump and man restore for information about those commands. You can use mt -f /dev/tape rewind to rewind to the beginning of the tape, and restore -t to check the contents of the tape.

Since the tape is on "file number 28", it gives me the impression that the tape is never rewound, and the backups are just appended each time. You might want to check how many backups your tape has room for.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0