![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |