Is it possible to ufsdump to a file instead of a tape device?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Is it possible to ufsdump to a file instead of a tape device?
# 1  
Old 07-20-2004
Is it possible to ufsdump to a file instead of a tape device?

Eh... what the title says. Smilie
# 2  
Old 07-20-2004
Yes.

From man ufsdump
Code:
ufsdump backs up all files specified by files_to_dump  (nor-
     mally either a whole file system or files within a file sys-
     tem  changed  after  a  certain  date)  to  magnetic   tape,
     diskette, or disk file

Use the f option to specify the dump file

The manual page will tell you more

EDIT: Rereading the original post (and the man page), I believe it must be a disk (i.e. device file), so if you mean backup to a "data" file (such as tar can back up to foo.tar) then I'd say no.

Maybe a Solaris admin can clear this up?

Cheers
ZB

Last edited by zazzybob; 07-20-2004 at 06:26 PM..
# 3  
Old 07-20-2004
Yes, yes. I was just looking at that. I just needed confirmation. Thanks, Zazzy. Smilie
# 4  
Old 07-20-2004
Er... just saw your revision... We don't have a system administrator here. >_<

But actually, I think it is possible. Doesn't anybody know for sure?

Thanks in advance.


Jim@PSC
# 5  
Old 07-20-2004
I change my tune again.... according to this
it would appear that you can dump to a plain old file, although there is a 2GB limit, so you might have to pipe through compress or gzip if the backup is larger than this.

Cheers
ZB
# 6  
Old 07-20-2004
Never really used ufsdump before other than in a Solaris certification class lab, so I thought I'd give it a try.

Answer is: Yup, it works.

krypton# cd /var/tmp/testdir
krypton# ls
test1 test2
krypton# ufsdump -f dumpfile test1 test2
DUMP: Date of this level 0 dump: Tue Jul 20 16:41:50 2004
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c0t0d0s0 (krypton:/) to dumpfile.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 32 Kilobyte records
DUMP: Estimated 366 blocks (183KB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 318 blocks (159KB) on 1 volume at 963 KB/sec
DUMP: DUMP IS DONE
krypton# ls -l
total 340
-rw------- 1 root other 163840 Jul 20 16:41 dumpfile
-rw-r--r-- 1 haefnr2 instrume 11 Jul 20 16:38 test1
-rw-r--r-- 1 haefnr2 instrume 21 Jul 20 16:38 test2
krypton# file dumpfile
dumpfile: ufsdump archive file
# 7  
Old 07-20-2004
Very cool. According to that thread (thanks ZB), it says that there was a 2 gig limit up to Solaris 2.5, and we're running Solaris 9. Perhaps the size limit has increased dramatically?

What we want to attempt to do now is to ufsdump the entire root directory, and scp it to a Win2k storage device. Hopefully size won't be an issue.

If something were to happen to the unix machine, would this dump file of the root directory be sufficient to restore the system back to its current state (provided we have a solaris 9 boot cd)? And do you guys foresee any problems doing it this way?

Last edited by PSC; 07-20-2004 at 08:09 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies

2. AIX

Backup to a remote tape device. Is it possible?

Hi all The situation is as follows: We need to take an mksysb image from an AIX 6.1 server. From some reason (irrelevant to this discussion) this server does not have access to a local CD-ROM or a tape drive. We do have another server with AIX 6.1 (but different technology level) which got access... (1 Reply)
Discussion started by: abohmeed
1 Replies

3. AIX

Tape device temporarily unavailable

Hi All, After (by accident) closing a session that ran a restore command I can not access the tape drive anymore. I get the following error: # tctl -f /dev/rmt0 rewind /dev/rmt0: Resource temporarily unavailable But I cannot find any processes associated with the tape device: # ps... (2 Replies)
Discussion started by: petervg
2 Replies

4. Solaris

possible to do ufsdump backup without a tape drive ?

hi friends, i am trying to patch a solaris 9 server. However i need to do a ufsdump backup before any patching. There is no hardware port for connecting the tape drive. Any other ways to do a ufsdump ? :wall: (2 Replies)
Discussion started by: Exposure
2 Replies

5. Solaris

Using ufsrestore from a DAT tape of ufsdump backup

hi, was wondering if there is a problem with the patches, and if we wish to restore everything back to square one, how should we go about using ufsrestore from a DAT tape of ufsdump backup data ? (1 Reply)
Discussion started by: Exposure
1 Replies

6. UNIX for Dummies Questions & Answers

How to change tape device name.

I disconected external device which was configured as rmt0. When I connect it again and run cfgmgr device name has changed (internal drive which was rmt1 is now rmt0 and external drive was rmt0 and is rmt1) and I dont know how to back it out. The thing is that for all backups I use new modell... (2 Replies)
Discussion started by: fraydey
2 Replies

7. UNIX for Advanced & Expert Users

tape device

Hi, 1- how can I find my tape device on my server ? 2-I have a backup of a data base distributed on several file system. How using tar -x can I extract from tape to each apropriate file system ? For exemple the data base was on /d1 ; /d2 ; and /d3. Now I cd to which /dn and use tar -xvf /dev/nm0... (0 Replies)
Discussion started by: big123456
0 Replies

8. Solaris

appending a ufsdump tape

I have a level 3 (weekly) ufsdump on a DLT 4700 that is only 239MB in total for the 3 weeks that the tape is loaded. On the 4th week, I remove the tape and insert another tape to do a level 0 (monthly) dump. Question is: What is the command to append more level 3 dumps if I reinsert the... (3 Replies)
Discussion started by: antalexi
3 Replies

9. SCO

tape drive driver device file

i have a sco-unix box. I want to access tape driver (sdt-700) on scsi. but i dont know how? where is this device file for tape driver is located? how do i access this tape? pls help this fool. (1 Reply)
Discussion started by: mchitrakar
1 Replies

10. Programming

tape device

Hi, I have problem detecting my tape drive. In SAM, once I click on the either Automated Backups or Interactive Backup and Recovery icon, the screen will prompt searching for device and ..... nothing appears in the list. In the end, I have the kill the SAM process and reboot the system and... (1 Reply)
Discussion started by: jennifer
1 Replies
Login or Register to Ask a Question