Sponsored Content
Full Discussion: backup report script
Top Forums Shell Programming and Scripting backup report script Post 95601 by new2prog on Thursday 12th of January 2006 01:50:07 PM
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
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
DB2BAK(8)						      System Manager's Manual							 DB2BAK(8)

NAME
db2bak - Directory Server script for making a backup of the database SYNOPSIS
db2bak [archivedir] [-Z serverID] [-q] [-h] DESCRIPTION
Creates a backup of the database. This script can be executed while the server is running or stopped. OPTIONS
A summary of options is included below: archivedir The full path to the directory to store the backup. -Z Server Identifier The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped. -q Quiet mode. Reduces output of task. -h Display the usage. EXAMPLE
db2bak -Z instance2 Makes a backup of the entire database for 'instance2', and stores it in the default server instance backup directory. db2bak /LDAP/backups/20130305 Creates a backup of the database and stores it in specified location. DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error. AUTHOR
db2bak was written by the 389 Project. REPORTING BUGS
Report bugs to http://bugzilla.redhat.com. COPYRIGHT
Copyright (C) 2013 Red Hat, Inc. Mar 5, 2013 DB2BAK(8)
All times are GMT -4. The time now is 11:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy