Can usfdump be used for backing up 1 directory?


 
Thread Tools Search this Thread
Operating Systems Solaris Can usfdump be used for backing up 1 directory?
# 1  
Old 09-28-2005
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!
# 2  
Old 09-28-2005
ufsdump backs up a filesystem. You could create a small filesystem with no subdirectories! Smilie

Seriously, tar or cpio both possible. I like tar myself.
# 3  
Old 09-28-2005
Which one is easier for quick/simple backup/restores of individual files from a directory? Tar or cpio?

Thanks!
# 4  
Old 09-28-2005
I say tar. Others might say cpio.
# 5  
Old 09-29-2005
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
# 6  
Old 01-12-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 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. Shell Programming and Scripting

Help on Backing up all the files in the subdirectories under a parent directory

Hi, I am not too familiar with Unix scripting but I have to write code to find all the files under all the sub directories under a parent directory of unix location and move them to the corresponding Windows location. For eg: I have \home\sreenu\Files\ Under neath this I have multiple sub... (3 Replies)
Discussion started by: raj.sreenu
3 Replies

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

4. UNIX for Dummies Questions & Answers

Backing Up and Emailing Home Directory and SQL Databases

Hello, I run a web hosting company, and I'm wondering how I can use cPanel's Cron Jobs so that a copy of my entire home directory and a copy all of my MySQL databases can be compressed and emailed to me. I know nothing about Linux, Unix, or whatever that thing with the penguin is called. :) ... (7 Replies)
Discussion started by: millipedeman
7 Replies

5. Solaris

Error using usfdump for backup & restore ?

Hello buddy, I used usfbackup command but error after full backup Solaris 5.5.1 /dev/c0t3d0s0 / /dev/c0t3d0s6 /usr I get error when restart after complete full backup Can't load the root file system Type 'go' to resume ***FULL MY STORY*** ... (1 Reply)
Discussion started by: posky
1 Replies

6. Solaris

Backing up the system

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... (6 Replies)
Discussion started by: eykyn17
6 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. Solaris

Using usfdump and usfrestore commands

I need to rlogin to a remote server, execute a usfdump to copy all its files to a 8mm cartridge tape. Take that tape to a local server room and execute a usfrestore to load all the files to the back-up server. The back-up server must also be formatted to look identical to the remote server. ... (1 Reply)
Discussion started by: davels
1 Replies

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

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