Sponsored Content
Full Discussion: Backing up the system
Operating Systems Solaris Backing up the system Post 302111958 by Sowser on Friday 23rd of March 2007 02:13:47 PM
Old 03-23-2007
ufsdump

do you have a tape drive attached? if so, just use ufsdump...so easy and convenient. Stick the file in cron and stick the following in the file.

clear
mt rewind
echo " THE TAPE IS REWINDING ....." > /var/adm/backlog
ARCH=/home/homedir
echo ""
echo " Backup start...." >> /var/adm/backlog
date >> /var/adm/backlog
ufsdump 0uf /dev/rmt/0cn /
echo "/ is done " >> /var/adm/backlog
ufsdump 0uf /dev/rmt/0cn /usr
echo "/usr is done " >> /var/adm/backlog
ufsdump 0uf /dev/rmt/0cn /export/home
echo "/export/home is done " >> /var/adm/backlog
ufsdump 0uf /dev/rmt/0cn /home
echo "/home is done " >> /var/adm/backlog
ufsdump 0uf /dev/rmt/0cn /ford
echo "/ford is done " >> /var/adm/backlog
ufsdump 0uf /dev/rmt/0cn /bulk
echo "/bulk is done " >> /var/adm/backlog
echo ""
echo "THE FULL SYSTEM BACKUP IS COMPLETED"
echo "THE FULL SYSTEM BACKUP IS COMPLETED" >> /var/adm/backlog
date >> /var/adm/backlog
echo "PLEASE REMOVE THE TAPE AND STORE IT IN A SAFE LOCATION"

You can modify it as needed with additional timestamps & more mount points.

Hope that helps...try it out line by line before you implement the script version. That way you know it works from beginning to end for your specific server.

-S
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

backing up

Ok I'm trying to backup a HD using ufsdump but no matter what I do it rewinds the tape after the dump. Now the tape isn't full (only 285mb) and I still have 6 more partitions I want to put on this tape. How can I stop the tape from rewinding because I can't think of anything. Also is there any... (4 Replies)
Discussion started by: merlin
4 Replies

2. UNIX for Dummies Questions & Answers

Backing Up Directories

Hi Guys, I'm writing a shell script that presents the user with various options, they select one (numbered 1-9) and it then excecutes the correct code. No problem, but I'm having slight difficulty with one option. The user can select to backup all the files in the current directory to another... (2 Replies)
Discussion started by: indigoecho
2 Replies

3. UNIX for Dummies Questions & Answers

Best practises for backing up

Hi, I'm about to start a regular backup schedule for my Linux system. I need some pointers if I may :) The system is *mainly* used as a personal home computer (it's actually a laptop running SuSE 9.2) although I do host some client material from it being a PHP developer. I know that in... (2 Replies)
Discussion started by: d11wtq
2 Replies

4. UNIX for Dummies Questions & Answers

backing up the vtoc

Can you backup the vtoc, then restore it if you somehow mess it up? This is solaris 9, x86. (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

5. Solaris

Identifying System folders that need backing up

We are not a huge shop -- 1 production V440 and one devel 450 box. Our backup strategy in a nutshell is if the system goes completely down, we reinstall the OS and then restore from tape the folders we need. I'm using Unix agent with BackupExec 10. It allows me to pick and choose down to a... (2 Replies)
Discussion started by: citrowske
2 Replies

6. AIX

what am i backing up

we are running aix on are server. we would like to start doing online backups, but the software company that we use is not beeing much help on what files we are backing up. is there a command that will tell me what files that we are backing up. they offer a service that would back it up for use,... (3 Replies)
Discussion started by: shane.hankins
3 Replies

7. Shell Programming and Scripting

Need help in backing up of databases.

Hi Everyone, I am new to DBA stuff. I wonder if anyone can help me. Task is that, I have 10 databases and need to take backups of all the databases using data pump in Unix/Linux, compress them using gzip and use cron to schedule the job twice a day. Appreciate if anyone can help me in... (1 Reply)
Discussion started by: sreepriya0987
1 Replies

8. Solaris

Backing up root disks

Hi ! I wonder if in solaris 10 there is a utility similar to ignite in HP-UX that backup entire file systems (/, /usr, /var, /tmp, /home). I have to backup only the root disk of a server, but ufsdump seem to be backing up individual file systems....only, am I correct? (1 Reply)
Discussion started by: fretagi
1 Replies

9. UNIX for Advanced & Expert Users

Backing up an entire HD

Are there any recommended methods for Backing up an entire HD? I want to backup my data. I do not care about the OS file. I just want my work, movies, and music. I have about 600 GB of work, movies, and music so a bit worried about fragmentation if I just copy and paste. (1 Reply)
Discussion started by: cokedude
1 Replies
utmpx(4)							   File Formats 							  utmpx(4)

NAME
utmpx, wtmpx - utmpx and wtmpx database entry formats SYNOPSIS
#include <utmpx.h> /var/adm/utmpx /var/adm/wtmpx DESCRIPTION
The utmpx and wtmpx files are extended database files that have superseded the obsolete utmp and wtmp database files. The utmpx database contains user access and accounting information for commands such as who(1), write(1), and login(1). The wtmpx database contains the history of user access and accounting information for the utmpx database. USAGE
Applications should not access these databases directly, but should use the functions described on the getutxent(3C) manual page to inter- act with the utmpx and wtmpx databases to ensure that they are maintained consistently. FILES
/var/adm/utmpx user access and adminstration information /var/adm/wtmpx history of user access and adminstrative information SEE ALSO
getutxent(3C), wait(3C)wait.h(3HEAD) SunOS 5.10 22 Feb 1999 utmpx(4)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy