The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error using usfdump for backup & restore ? posky SUN Solaris 1 06-10-2008 04:54 PM
Backing up the system eykyn17 SUN Solaris 6 03-28-2007 08:49 AM
Best practises for backing up d11wtq UNIX for Dummies Questions & Answers 2 07-06-2005 05:11 PM
Using usfdump and usfrestore commands davels SUN Solaris 1 09-12-2004 03:45 PM
backing up merlin UNIX for Dummies Questions & Answers 4 09-09-2001 01:35 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2005
Registered User
 

Join Date: Sep 2005
Posts: 85
Stumble this Post!
Can usfdump be used for backing up 1 directory?

I know I can use ufsdump to backup a full device, but can I use it to just backup specified directories within the device? If so , how? (The man pages do not mention how to do that).

If ufsdump can not do it, what are my choices?

Thank you!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-28-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,449
Stumble this Post!
ufsdump backs up a filesystem. You could create a small filesystem with no subdirectories!

Seriously, tar or cpio both possible. I like tar myself.
Reply With Quote
  #3 (permalink)  
Old 09-28-2005
Registered User
 

Join Date: Sep 2005
Posts: 85
Stumble this Post!
Which one is easier for quick/simple backup/restores of individual files from a directory? Tar or cpio?

Thanks!
Reply With Quote
  #4 (permalink)  
Old 09-28-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,449
Stumble this Post!
I say tar. Others might say cpio.
Reply With Quote
  #5 (permalink)  
Old 09-29-2005
Registered User
 

Join Date: Sep 2005
Posts: 2
Stumble this Post!
Just for the sake of completeness, ufsdump(1M) does permit backups of individual subdirectories in a filesystem. For instance, to backup the "/etc/inet" subdirectory:

# ufsdump 0f /dev/rmt/0 /etc/inet

This is a subdirectory on the root filesystem, but only the specified files/directories are ufsdumped... not the entire root filesystem.

Keep in mind that the entire directory structure of the specified files/directories is backed up (and restored.)

FWIW.

Matt
Reply With Quote
  #6 (permalink)  
Old 01-12-2007
Registered User
 

Join Date: Nov 2006
Posts: 29
Stumble this Post!
Hi,

I am using ufsdump to full backup harddisk of Sun to one TAPE which is assumed to have enough space for data 05 partitions:

# more /etc/vfstab
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
/dev/dsk/c1t0d0s6 /dev/rdsk/c1t0d0s6 /usr ufs 1 no -
/dev/dsk/c1t0d0s4 /dev/rdsk/c1t0d0s4 /var ufs 1 no -
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /mmf ufs 2 yes -
/dev/dsk/c1t0d0s5 /dev/rdsk/c1t0d0s5 /opt ufs 2 yes -

Should I just use 01 command to backup 05 partitions like:
# ufsdump 0ucf /dev/rmt/0 / /usr /var /mmf /opt

or I have to perform 05 commands for each like:
# ufsdump 0ucf /dev/rmt/0 /
# ufsdump 0ucf /dev/rmt/0 /usr
# ufsdump 0ucf /dev/rmt/0 /var
# ufsdump 0ucf /dev/rmt/0 /mmf
# ufsdump 0ucf /dev/rmt/0 /opt


Appreciate all your help.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
cpio

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0