backup report script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting backup report script
# 1  
Old 01-06-2006
backup report script

Hi ,

Let me know how to write a script that

runs a <a backup command> to check the backups of a particular client
from the last_night & today' dates
and print the out.
# 2  
Old 01-08-2006
Quote:
runs a <a backup command> to check the backups of a particular client
from the last_night & today' dates
and print the out
You really need to give more information - what should the script be written in? What OS and version are you running? What kind of backup (tar, ufsdump, netbackup, etc.), and how is it recorded (log files)?

Plus, normally, we ask that folks do their own scripts and if you run into problems, then ask specific questions in the area you are having issues with. You can always find a consultant to come in and fix up a script. Learning to do it yourself is more rewarding (although there are a bunch of folks on these forums that could just knock out a script once they had some specifics).
# 3  
Old 01-12-2006
Quote:
Originally Posted by RTM
You really need to give more information - what should the script be written in? What OS and version are you running? What kind of backup (tar, ufsdump, netbackup, etc.), and how is it recorded (log files)?

Plus, normally, we ask that folks do their own scripts and if you run into problems, then ask specific questions in the area you are having issues with. You can always find a consultant to come in and fix up a script. Learning to do it yourself is more rewarding (although there are a bunch of folks on these forums that could just knock out a script once they had some specifics).
Hi,

Here is a script that I developed.

#!/usr/bin/ksh
# Script to check for the last backups

echo "Enter the client name"
read CLIENT_NAME

for DATE in <mm/dd/yy> <mm/dd/yy> .....
do
echo "Checking for the backup of $CLIENT_NAME for the $DATE"

mminfo -c $CLIENT_NAME | grep "$DATE"
done

Currently I am updating the dates in the script as what ever I need.
I would like to design the script in such a way that it should ask me a date that I should start and end with.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Backup Script

I don't know how to repair this script :/ My OS: Ubuntu Server 18.04 "Bionic Beaver" LTS (64bits) #!/bin/bash # ### Ustawienia - sciezki do plików ### DIRS="/home/ts/ /home/mc/" BACKUP=/home/backup.$$ NOW=$(date +"%d-%m-%Y") DELDATE=$(date -d "-7 days" +"%d-%m-%Y") DAY=$(date +"%a") #... (4 Replies)
Discussion started by: xCraftRayX
4 Replies

2. Shell Programming and Scripting

Help with backup script

So i have been doing my backup script, but i have stumbled with this obstacle and would enjoy some help: The system must have the option to set the amount of saved backups from the same directory. For example, if the quantity is four and already there are four saved backups of the same... (2 Replies)
Discussion started by: Whitebane16
2 Replies

3. 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

4. Shell Programming and Scripting

Help with Backup Shell Script for Network Device Configuration backup

HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here Im explaining the requirement of script. AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies

5. Shell Programming and Scripting

Backup script / Test if script is already running

Hello everyone, I have 2 questions : 1) I have a backup shell script, let's call it backup.sh, that is called every hour as a cron job. As a matter of fact a backup could last more than one hour. It mounts a NAS and then do some rsync on important directories, so really I don't want to... (2 Replies)
Discussion started by: freddie50
2 Replies

6. Shell Programming and Scripting

Need help in creating file restoration script from a backup script.

Hi all i am struggling in creating a restore of env files while doing applications clone. the first file i created for copying the important configurations file which is running perfect now for reverting the changes i mean when i am restoring these files to its original places i have to do... (7 Replies)
Discussion started by: javeedkaleem
7 Replies

7. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

8. Shell Programming and Scripting

perl script for generates a report for backup times

Hi all, we do have daily oracle database backups and i need to generate report of each database start point and end point we are using netapp snapshot(filer level) for backups. all backups logs will be come in one directory /u01/app/oracle/backup/hostname/log/* here... (7 Replies)
Discussion started by: prakashdba2010
7 Replies

9. UNIX for Dummies Questions & Answers

Where is backup script?

I am looking at some preliminary work in replacing the trusty server - shhh! I want to look at the cpio line to determine what, how & when the backup is performed From memory, I think this was in cron. How can I look at it? Otherwise any ideas where else the backup is located? SCO... (1 Reply)
Discussion started by: moondogi
1 Replies

10. UNIX for Dummies Questions & Answers

Help with a backup script

Hiya i did a search for this kind of thing and couldnt find anything! I have a script that backs up a filesystem at 2 mins past 2 in the morning every morning, the problem, is i now need to progress this so that it checks if there is a tape loaded into the drive, if there is then it will proceed... (5 Replies)
Discussion started by: SemperFi
5 Replies
Login or Register to Ask a Question