Backing up the system


 
Thread Tools Search this Thread
Operating Systems Solaris Backing up the system
# 1  
Old 03-23-2007
Backing up the system to tape in Sun ver 5.6

Hello Mentors,

Before anything else I would like to thanks to all expert here especially Pressy as he guided me to recover our server from disk failure. I posted a lot of question from these forum site concerning on how to recover our server and luckly you guys help me. Our server is now up and running.

Now I'm planning to have a backup on the system like the configurations, settings and everything in the tape so that if there is a hardware problem we could easily restore from it. I just would like to ask particullarly on how to backup our system I have a litle knowledge doing tar but I need your expertise to guide me so that we can have 100% backup.

SUN version 5.6
By the way here is our cofiguration:

dev/dsk/c0t3d0s0 579302 208070 313302 40% /
/dev/dsk/c0t3d0s6 192423 154245 18936 90% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t3d0s7 47975 293 42885 1% /export/home
/dev/dsk/c0t1d0s7 4358594 853645 3461364 20% /ford
/dev/dsk/c0t2d0s7 70586735 47844704 22036164 69% /bulk
swap 321756 192 321564 1% /tmp

How do I backup the system what is the best coomand?

thanks in advance

Last edited by eykyn17; 03-25-2007 at 03:32 AM..
# 2  
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
# 3  
Old 03-25-2007
Thanks for the reply and the script that you have made. About the backup how will I able to check on the tape that they have all the system on there instead of seeing the backlog file. Also is it included the /etc on the backup

thank you very much
# 4  
Old 03-27-2007
sower thank for helping me :0
# 5  
Old 03-27-2007
Well in the man page is written that ufsdump must be used on unmounted file systems or mounted read only...

I would like to make a back-up of one Solaris10 HDD and just discovered ufsdump and fssnap.

Since I have to use only nfs shares what is the best to use with a running system?

Is there any way to back-up the entire "partition" at once or I have to back-up folder by folder like in Sowser example?

Tank you!
# 6  
Old 03-27-2007
backups

when you are doing backups, you need to back up the partitions. There isnt a way as far as i know to just wack the whole system with a backup. You usually have to back up each individual file system with some sort of backup mechanism, in this case a ufsdump. you can use ufsrestore to check the actual files loaded on the tape. you can check the man pages for more detail about it.

just as an FYI, you can just stick that script in cron and have the system backed up weekly or something like that.

yes, /etc/will be backed up if you back up the file system it is under, usually /

hope that helps.

-S
# 7  
Old 03-28-2007
Not very clear for me...

The example is for back-up in tape device.

I have no tape. Just some nfs shares... And a running system.

How can I back-up an entire partition/slice(if disk is not possible)?

Tnx!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

9. 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
Login or Register to Ask a Question