01-30-2001
nohup ./backup_script 1> log_file 2>&1 &
Then logout. You will get a warning that you have running jobs, but go ahead and logout anyway. The 'nohup' tells the command to keep running even when its parent shell goes away. You may want to log back in afterwards and check using 'ps' to see that it is still running.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
The object of my program is to take automatic backup on daily basis to different folders. I have created the respective folders. when I execute below given shell program manually it is working perfectly and taking the backup to respective folder.
#!/bin/sh
#script to take backup on... (1 Reply)
Discussion started by: jarkvarma
1 Replies
2. Shell Programming and Scripting
Hi,
Thanks in advance.
i need to kill a unix background running job after that job process completes.
i can kill a job by giving the following unix command
kill -9 processid
how to kill the job after the current process run gets completed ?
Appreciate your valuable help.
... (1 Reply)
Discussion started by: dtazv
1 Replies
3. UNIX for Dummies Questions & Answers
Hey!
I have just configured an backup MX using Mail::Toaster under FreeBSD.
As I'm a novice when it comes to mailservers, I need to ask someone how to check that this backup really does its job.
My primare MX is unfortunately on a Dynamic IP line, but its unsusual for it to change the IP.... (4 Replies)
Discussion started by: noratx
4 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I´m a newbie in Linux, but I´m trying to solve some problems studying on my own, but I´ve had some problems with AWK.
Look, I have one single backup log file per server and I want to make a daily delection from the last backup job to show in a intranet of my work.
The log files are from... (0 Replies)
Discussion started by: metalfreakbr
0 Replies
5. Shell Programming and Scripting
Hi Experts,
I need a script advice to schedule 12 jobs ( SAS Codes execute back ground ).
Algorithem:
1. Script checks first job.
2. Finds first job is done; invoke second job.
3. finds second job is done; invoke third job.
..
Request you to please assist. (3 Replies)
Discussion started by: Jerald Nathan
3 Replies
6. Shell Programming and Scripting
i have just installed a cron job to run at 3 in the morning once a week. It's difficult for me to test if it works because the email backup program takes the email service down before running the backup. I wondered if i could ask you gurus if this would work?
0 3 * * 0 ... (1 Reply)
Discussion started by: timgolding
1 Replies
7. Shell Programming and Scripting
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. Programming
how to code script using shell scripting to refire a backup job if it fails with an error code of 196? (1 Reply)
Discussion started by: Pawan Ramnani
1 Replies
9. Shell Programming and Scripting
how to write a code using shell scripting to refire a back up job if it fails with an error code of 196? (7 Replies)
Discussion started by: Pawan Ramnani
7 Replies
10. Shell Programming and Scripting
I am trying a cron on root user to backup to tape using TAR command
here is the cron entry
11 08 * * 6 /erdhot1cron 2>&1 >> /test3/scripts/dba/erdhot1cron.log
here is script inside - edhot1cron
#!/bin/bash
vsysdt=`date +%d%m%y`
date
tar -cvf /dev/st0... (4 Replies)
Discussion started by: vijaymec50
4 Replies
LEARN ABOUT OSF1
backup_interactive
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)