Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Backup system to NFS Appliance device Post 39872 by Perderabo on Tuesday 2nd of September 2003 06:07:35 PM
Old 09-02-2003
Maybe your backup script never worked.

When the shell encounters "> $TAPEDRIVE" It will open /mavesbu/backup and connect that file to stdout. If the file did not exist, it will be created. At this point, the output is destined to go to /mavesbu/backup.

Then the shell moves along to ">> $MAILMSG". Here it will open $MAILMSG in append mode and connect stdout to that. Now the output will go to whatever file is in MAILMSG. You have overridden the effect of your earlier "> $TAPEDRIVE". (Except that if the file was created, it will continue to exist.)

Next the shell encounters 2>&1 and so stderr will now go to where ever stdout is pointing.

At this point, the shell will run the pipeline. By the time that the cpio program is invoked, it has no file descriptors pointing to /mavesbu/backup.

The command was ok until ">> $MAILMSG" which is what is screwed you up. Are you sure that the original script had that?

Go to a completely empty directory. Try this command:
date > one >> two

What do you get in one? And in two? That syntax is wrong.
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
BACKUP_INTERACTIVE(8)					       AFS Command Reference					     BACKUP_INTERACTIVE(8)

NAME
backup_interactive - Enters interactive mode SYNOPSIS
backup [interactive] [-localauth] [-cell <cell name>] [-help] backup [i] [-l] [-c <cell name>] [-h] DESCRIPTION
The backup interactive initiates an interactive session for issuing backup commands. As indicated in the syntax statement, the operation code (interactive) is optional. Several features of interactive mode distinguish it from regular mode: o In interactive mode, the "backup"> prompt replaces the system (shell) prompt. The operator enters only a command's operation code (omitting the command suite name, backup). o If the -localauth flag or the -cell argument is included on the backup interactive command, the settings apply to all commands issued during that interactive session. The issuer does not need to type them on every command. Another consequence is that the flag and argument do not appear in the syntax statement generated by the help subcommand or -help flag on an individual command issued at the "backup"> prompt. o The backup jobs and backup kill commands are available only in interactive mode. It is not possible to track and terminate backup operations as cleanly in non-interactive mode. o It is not necessary to enclose strings that include metacharacters in double quotes or other delimiters. o The backup command interpreter establishes a connection to the Backup Server, Volume Server and Volume Location (VL) Server processes as it enters interactive mode, and uses the same connection for all commands during the session. Execution time can therefore be faster than in non-interactive mode, in which the command interpreter must establish a new connection for each command. To exit an interactive session, issue the backup quit command. OPTIONS
-localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more details, see backup(8). -cell <cell name> Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8). -help Prints the online help for this command. All other valid options are ignored. EXAMPLES
The following example shows how the -localauth flag and -cell argument do not appear when the help dump subcommand is issued in interactive mode. % backup backup> help dump dump: start dump Usage: dump [-volumeset <volume set name>] [-dump <dump level name>] [-portoffset <TC port offset>] [-at <Date/time to start dump>+] [-append ] [-n ] [-file <load file>] [-help ] PRIVILEGE REQUIRED
None. However, backup commands that require privilege in regular mode still require it in interactive mode. SEE ALSO
backup(8), backup_jobs(8), backup_kill(8), backup_quit(8), butc(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BACKUP_INTERACTIVE(8)
All times are GMT -4. The time now is 11:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy