1845953 Members
2196 Online
110250 Solutions
New Discussion

Re: Full system backup

 
Arthur_3
Regular Advisor

Full system backup

If you select to backup c0t0d0s0 will it back up everything on the system? I need to do a full system backup but am a little unsure of the command...

tia
13 REPLIES 13
David Navarro
Respected Contributor

Re: Full system backup

Hi. It depends. Do you have just one disk?.
If you want to do a full system backup, then you must backup / directory.
which ux version do you have?
Look at fbackup command.

Best luck!
harry d brown jr
Honored Contributor

Re: Full system backup

What OS are you running? Do a man on fbackup, it'll direct you on how to perform a full backup. It's also a great idea to make sure you have a make_recovery also.

live free or die
harry
Live Free or Die
Helen French
Honored Contributor

Re: Full system backup

Hi,

What backup utility r u using ? If you are using Omniback /Legato, then you have an option of selecting the whole system. In other utility like tar, cpio etc, you have to select the source_dir as root ('/'), while all your file systems are mounted.

HTH,
Shiju
Life is a promise, fulfill it!
Justo Exposito
Esteemed Contributor

Re: Full system backup

Hi,

Perhaps the easiest way is using SAM and doing a backup of /.

Take in mind make_recovery command!!!

Regards,

Justo.
Help is a Beatiful word
Arthur_3
Regular Advisor

Re: Full system backup

Sorry, this is on A solaris system. Thought you guys might know as solaris forums are few and far between.

I need to back up the whole disk, I know the basic command but need to know whether by adding c0t0d0s0 this will back up everything or just that slice (that slice being root)
Justo Exposito
Esteemed Contributor

Re: Full system backup

Hi Arthur,

You must use the command ufsdump and do it for the "/" directory.

With ufsdump S filesystemname you can obtain the estimated size of the backup.

Regards,

Justo.
Help is a Beatiful word
Justo Exposito
Esteemed Contributor

Re: Full system backup

Hi Arthur,

Do a full backup 0 option (dump level):

ufsdump 0ucf /dev/rmt/n files-to-backup

As I can see for do it a full backup Sun tell that is needed to go to a single user mode.

For this you can do a shutdown without params, you must have in mind that this stop all the process.

Regards,

Justo.
Help is a Beatiful word
Arthur_3
Regular Advisor

Re: Full system backup

Thanks, so the backup command with the / option instead of c0t0d0s0 will copy all slices from c0t0d0s0 thru s7?

TIA
Darrell Allen
Honored Contributor

Re: Full system backup

Hi Arthur,

ufsdump is for backing up a ufs filesystem, not an entire disk. You will need to run ufsdump against every filesystem you want to backup. To put them on one tape, you need to use the no-rewind device. So basically you do something like:

mt -t /dev/rmt/0m rewind
/usr/sbin/ufsdump 0ucf /dev/rmt/0mn /
/usr/sbin/ufsdump 0ucf /dev/rmt/0mn /usr

and so on for the remaining filesystems.

If I remember correctly, slice 2 is the "whole disk" but again, ufsdump is a filesystem dump utility.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
harry d brown jr
Honored Contributor

Re: Full system backup

Arthur,

Get gnu's tar, it'll do the trick!!!

http://www.sunfreeware.com/

then from root (/):

tar -cvf /path2tapedevice

live free or die
harry
Live Free or Die
Darrell Allen
Honored Contributor

Re: Full system backup

Hi again,

How quickly we forget. It's been just a year since I admin'ed Solaris.

I found the man page for ufsdump at docs.sun.com and basically is says that instead of specifying the mount point for dumping a filesystem, you the raw device. So instead of specifying "/" use /dev/rdsk/c#t#d#s# (whatever slice is root).

The neat thing about ufsdumps, though I don't remember how, is you can rebuild your Sun with a ufsdump tape when booting from a CD. We made ufsdumps of all filesystems on all Suns before Y2K just in case we needed to do that.

But like on any OS, there are more performant utilities for backing up or restoring a system quickly. Some are Veritas Netbackup, Legato, and Reel Backup.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Darrell Allen
Honored Contributor

Re: Full system backup

Just re-read my last reply and wanted to make it clear that you still have to backup each filesystem separately with ufsdump.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Scott_14
Regular Advisor

Re: Full system backup

hello:

use the NO Rewind option, for the device, so You can backup up EACH slice onto one tape, that is if it all fits of course, but you can to a quick check first.

Then when you restore you can look at the man pages, for the ufsrestore vsf # where # is the number to FORWARD the tape
to.