backup commands

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers backup commands
# 1  
Old 02-25-2002
Question backup commands

Just want to know when a daily backup is carried out, what commands are used to check whether or not the backup has completed. I am aware of the ls -l command which gives the log size.

# 2  
Old 02-26-2002
When you execute your backup script, test the return code of the command and take an action when necessary.

Example :


ufsdump 0uf /dev/rmt/0 /your_filesystem

if [ $? -ne 0 ];then
echo "BACKUP ERROR in the $host"
echo "BACKUP ERROR in the $host" > /tmp/bkp_msg_error.txt
mailx -s "BACKUP ERROR" your_email@your_domain < /tmp/bkp_msg_error.txt


set host=`hostname`

ufsdump 0uf /dev/rmt/0 /your_filesystem

if ( $status != 0) then
echo "BACKUP ERROR in the $host"
echo "BACKUP ERROR in the $host" > /tmp/bkp_msg_error.txt
mailx -s "BACKUP ERROR" your_email@your_domain < /tmp/bkp_msg_error.txt

P.s.: Use the mailx command if you have a sendmail in your host.

I hope help you !
# 3  
Old 02-26-2002
It depends which flavour of Unix you are using. You can use lots of different backup techniques. If you are using HPUX SAM does a backup and you can check it as well, if you don't want to get to scripting yet. If you are using Solaris then ufsdump is a good example. You can check this with "ufsrestore". If you define a cronjob then you will automatically receive an email.

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

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

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

3. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies

4. UNIX for Advanced & Expert Users

backup a file and keep every version of the backup

I am trying to backup my .bash_history and I want to keep every version of the backup. I am thinking to put one of these in my crontab. 0 0 * * 0,3 cat .bash_history > boo 0 0 * * 0,3 cp .bash_history boo I would like the backups to be called boo1, boo2, boo3, etc. I would like to keep... (7 Replies)
Discussion started by: cokedude
7 Replies

5. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

6. SCO

Backup to SCSI Tape Backup aborts

I am trying to make a full backup of my system using the cpio command. The Tape Unit is a SCSI DDS. The process started fine but after about 30 minutes, it just stopped and showed the following message: 1755 Signal 31 - Core dumped Any idea of what is causing this and how to fix it? ... (4 Replies)
Discussion started by: zionpc
4 Replies

7. UNIX for Dummies Questions & Answers

Check backup file size on backup tape

Hi, I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies

8. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

9. UNIX for Dummies Questions & Answers

Noob learning Unix: backup commands

I am trying to learn some unix here and i have some question that i would like to ask: What's the most basic backup command? What is the command to pause a backup? What is the command to resume backup? Can we backup a job that is running ? How can we pause the backup of the job and than... (1 Reply)
Discussion started by: lotusx
1 Replies
Login or Register to Ask a Question