Visit Our UNIX and Linux User Community


backups in background


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users backups in background
# 1  
Old 08-26-2002
Computer backups in background

Hi, how i can do background backup process in Unix??

I has Solaris Operating System.


very much thanks!!

Last edited by jairog; 08-26-2002 at 08:52 PM..
# 2  
Old 08-26-2002
You can either do the command and add a & sign at the end (puts the process in the background) or put your backup commands into a script and run the script via cron.

Check out the man page for crontab, ufsdump, and/or tar.
# 3  
Old 09-03-2002
nohup command...

If you are not using CRON, and are using the command line, you must use the "nohup" command at the beginning of your command so that when you logout, the script won't die.


nohup <your command here> &




My brain is your brain...
Smilie
# 4  
Old 09-04-2002
Kelam - the nohup isn't always needed. Running from the command line and backgrounding the job, you can exit without the job going away without the nohup.

Last login: Fri Aug 30 13:23:41 2002 from progserver
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
No mail.
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
medusa% sleep 600 &
[1] 10341
medusa% exit
medusa% logout
Connection to medusa closed.
medusa% ps -ef|grep sleep
tghunter 10341 1 0 13:49:16 ? 0:00 sleep 600

And on HP-UX 11.0 it lets you know about the job but if you exit anyway, it's still there (of course, root now owns it on HP - now I need to look into what other fun that can cause).

[unixops@isaac]:/export/home/unixops
$ sleep 600 &
[1] 20884
[unixops@isaac]:/export/home/unixops
$ exit
You have running jobs
[unixops@isaac]:/export/home/unixops
$ exit
logout
Connection closed by foreign host.
[unixops@isaac]:/export/home/unixops
$ ps -ef|grep sleep
root 20814 1515 0 13:48:10 ? 0:00 /usr/bin/sleep 300
# 5  
Old 09-04-2002
I always use nohup... for bg commands

---------------------------------------------------
QUOTE: And on HP-UX 11.0 it lets you know about the job but if you exit anyway, it's still there (of course, root now owns it on HP - now I need to look into what other fun that can cause).

---------------------------------------------------

I am an HPUX admin and do run 11.0 and 11i, and you are correct in your assesment for a USER. However, that is not the case if you are actually running the job as ROOT.

There is no one to had the job off to in that case. So it will abend when you logout after the warning message.

I find it is good practice to use nohup in all cases just so it is always the same. You are performing the command with the same methodology all the time.

That is why I don't alias the rm -i command because it is a non-standard command. However, don't get me wrong it is perfectly okay to have aliases. I just don't do it for rm, mv, and similar commands. That is just my personal philosophy.

Smilie Smilie

Previous Thread | Next Thread
Test Your Knowledge in Computers #812
Difficulty: Medium
In CSS, the rgba() function define colors using the red-green-blue-accent (RGBA) model.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Backups using rsync

Hello all, I'm using nas4free as a SAN and am having troubles getting a backup of it's data to work properly. I've posted in the nas4free forums, but haven't received much help. Here is the code I'm using: #!/bin/sh {... (1 Reply)
Discussion started by: dpatino
1 Replies

2. AIX

AIX 6.1 Backups

Hello, I've got multiple AIX LPARs running on VIOS, within a blade environment. I need to dump a mksysb backup to backup rootvg and a couple of other volume groups. mksysb -i "destination"; works however I'd like to make sure its being done correctly. on the other volume groups, ive... (2 Replies)
Discussion started by: ollie01
2 Replies

3. UNIX and Linux Applications

Oracle 9i - Backups

Is there a way to backup an Oracle 9i database without the use of OEM and OMS? (1 Reply)
Discussion started by: adelsin
1 Replies

4. UNIX Desktop Questions & Answers

Backups too CD

I've been handed the task of backing up some of our system files on a Solaris box. No probs. Zipped the logs that needed backing up but my superiors do not want it on tape, they want it spanned on CD's. The CD-Writer is available on a MS box. FTP'd the zipped logs across too the MS Machine but now... (1 Reply)
Discussion started by: mccrack_2003
1 Replies

5. UNIX for Dummies Questions & Answers

restoring backups

okay.. pple.. say now i got an aix box. of course i could restore a backup done in aix environment. 1) now how about doing a restore from sun, hp from the aix box.? 2) can we install a sun, hp os into an aix box? 3) if (1) prohibits, then how about doing an sun, hp os installation on... (1 Reply)
Discussion started by: yls177
1 Replies

6. UNIX for Dummies Questions & Answers

Backups.

Hello everyone my ? is about backups. I'am running SCO OS 505 and currently backing up the hole HD. Well the back up is taking too long and this is becoming a problem for the users since we are a 24-7 bussines, I whant stop backing up every thing on the HD. What are the most important files and... (1 Reply)
Discussion started by: kikkin
1 Replies

7. UNIX for Advanced & Expert Users

UNIX backups

hi, how do we go for the BACK UPS on the UNIX box,using DLT tapes.i need to back up the stuff on the DLT tape. pls HELP:( (4 Replies)
Discussion started by: saood
4 Replies

8. UNIX for Dummies Questions & Answers

backups

When using hostdump.sh to backup a system I can do it fine. But how can I restore what I backuped up? :) Thx in advance (2 Replies)
Discussion started by: merlin
2 Replies

9. Filesystems, Disks and Memory

Backups

I have been using the hostdump.sh backup script for over a year now and have recently run into a problem. I'm now getting the following error at the end of my jobs; /bin/mt -f: error fsf'ing tape. This script uses the native 'ufsdump'. So, I try to go back and read the last dump on the tape... (11 Replies)
Discussion started by: Solaris
11 Replies

Featured Tech Videos