Backup system to NFS Appliance device


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Backup system to NFS Appliance device
# 8  
Old 09-02-2003
Thanks,

I will remove the MAILMSG part and try that.

Here is a copy of the original section from the original script:

This does work to a tape unit but not a file.

datestamp "output of AIX command 'w' follows ..."
echo "${line}" >> $MAILMSG
w >> $MAILMSG 2>&1
echo "${line}" >> $MAILMSG
#
# do the actual backup
#
datestamp "actual 'backup' command begins ..."
echo "${line}" >> $MAILMSG
cd $STARTDIR
find . ! -fstype nfs ! -type s -print | sort | \
/etc/backup -ipqf$TAPEDRIVE -b800 >>$MAILMSG 2>&1
echo "${line}" >> $MAILMSG
#
# re-mount /dev/cd0
#
if [ "$cd0flag" = "yes" ]
then
mount /dev/cd0
datestamp "re-mounted CD-ROM /dev/cd0 ..."
fi
#
# enable the ttys again
#
datestamp "enabling ports (pstart -a) ..."

must be differences with the commands and talking to a device vs talking to a file
# 9  
Old 09-02-2003
It's cpio vs backup. cpio simply writes to stdout while backup takes the device as an argument and opens it itself.

Do you just want errors mailed? If so use "2>> $MAILMSG".
# 10  
Old 09-03-2003
And it not be obvious, but if you use "2 >> $MAILMSG", you do not want to do a 2&>1. In fact, you never want to do a 2>&1 with cpio. That would deposit any error messages in your archive file, thus corrupting it.

And one last remark, /mavesbu/backup.cpio might be a better filename. That gives folks a clue as to how to read it.
# 11  
Old 09-03-2003
Thanks Perderabo your reply fixed the issue and your other comments are duly noted.

Now just to get the backup down from the 5+ hours it takes.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Backup of files using NFS a faster way

Hi All! i am trying to copy files from a SCO Openserver 5.0.6 to a NAS Server using NFS. I have a cron job that takes 1.5 hours to run and most of the data is static. I would like to find a faster way. In the event I needed to running manually or avoid an issue with taking down the servers... (9 Replies)
Discussion started by: trolley
9 Replies

2. AIX

Cloning a system via mksysb backup from one system and restore to new system

Hello All, I am trying to clone an entire AIX virtual machine to a new virtual machine including all partitions and OS.Can anyone help me on the procedure to follow? I am not really sure on how it can be done.Thanks in advance. Please use CODE tags for sample input, sample output, and for code... (4 Replies)
Discussion started by: gull05
4 Replies

3. SCO

NFS umount shows the "Device busy (Error 16)"

Hi there After making a backup copy of it sometimes happens that when I want to unmount an NFS indicates the error:umount: /path_mount busy: Device busy (Error 16) if I run lsoff, I can not find the process that is blocking the application. I'm using OpenServer 5.0.2c as one NFS server ... (14 Replies)
Discussion started by: flako
14 Replies

4. AIX

Backup to a remote tape device. Is it possible?

Hi all The situation is as follows: We need to take an mksysb image from an AIX 6.1 server. From some reason (irrelevant to this discussion) this server does not have access to a local CD-ROM or a tape drive. We do have another server with AIX 6.1 (but different technology level) which got access... (1 Reply)
Discussion started by: abohmeed
1 Replies

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

6. UNIX for Advanced & Expert Users

how to make a full system backup excluding data and restoring it to a new system

Hi, In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way : - Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies

7. UNIX for Dummies Questions & Answers

Fishworks appliance file system ??

Hi, could any one please let me know what is Fishworks appliance file system ?? How could I find out whether given filesystem is on Fishworks appliance? Thanks, Paresh (0 Replies)
Discussion started by: masaniparesh
0 Replies

8. UNIX for Dummies Questions & Answers

backup to NFS mount Redhat-Solaris

Hi guys, I have a redhat laptop and a sun solaris 8 server networked together I created an nfs share on the sun server and backed up an image of the Redhat laptop to it. The Hard disk size of the laptop is 40Gb but I have about 38Gb free space on the sun server. So I compressed the image... (9 Replies)
Discussion started by: Stin
9 Replies

9. UNIX for Advanced & Expert Users

Showing Device Does Not Exist While Taking Backup

Friends, while taking backup on /dev/rmt/0cn it is showing device does not exists. I have checked /dev/rmt 0cn is present there with link file created in /devices/pci@8,700000/scsi@5/st@5,0:cn I have checked cd /devices/pci@8,700000/scsi@5 but st@5,0:cn is not there. But I found st@3,0:cn. ... (3 Replies)
Discussion started by: ailnilanjan
3 Replies

10. UNIX for Dummies Questions & Answers

cpio backup to a remote device..

Hi, Needing to perform a backup of one system to the tape unit on another system. Why, well because the local tape device is stuffed and I desparately need to have a backup completed successfully sooner rather than not at all. My question is how do I set the below code to allow me to perform... (3 Replies)
Discussion started by: Cameron
3 Replies
Login or Register to Ask a Question