LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 05-31-2006, 05:31 PM   #1
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
ufsdump


Hi,



How can i dump 1 directory to another disk, or for example 1 partition to another. Im running solaris 10, x86, and trying the following...


root@pimpking {/] #ufsdump 0f /jalla2/ /jalla
DUMP: Date of this level 0 dump: Wed May 31 23:29:07 2006
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c0d0s7 (pimpking:/jalla) to /jalla2/.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 32 Kilobyte records
DUMP: Estimated 311060 blocks (151,88MB).
DUMP: NEEDS ATTENTION: Cannot open `pimpking:/jalla2/'. Do you want to retry the open?: ("yes" or "no")

....here i dont get forward..

root@pimpking {/] #df -h | grep jalla
/dev/dsk/c0d0s7 993M 153M 781M 17% /jalla
/dev/dsk/c0d0s4 993M 1,0M 932M 1% /jalla2
root@pimpking {/] #

Need som help here
 
Old 05-31-2006, 06:34 PM   #2
mdhmi
Member
 
Registered: Dec 2005
Location: Detroit, Michigan
Distribution: Ubuntu
Posts: 86

Rep: Reputation: 15
What's wrong with tar or cp?

Mark
 
Old 06-01-2006, 02:29 AM   #3
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Original Poster
Rep: Reputation: 30
There is nothing wrong with tar, cpio pax etc....but im just experimenting with ufsdump,
and i dont have a tapedrive, so how do i dump it to another file.


Ole
 
Old 06-01-2006, 05:53 AM   #4
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 165

Rep: Reputation: 30
Post Try this

/jalla is the mount point
Instead of /jalla try with /dev/dsk/c0d0s7
 
Old 06-01-2006, 11:06 AM   #5
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Original Poster
Rep: Reputation: 30
Same thing happens...

root@pimpking {/] #ufsdump 0f /jalla2/ /dev/dsk/c0d0s7
DUMP: Date of this level 0 dump: Thu Jun 01 17:04:31 2006
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c0d0s7 (pimpking:/jalla) to /jalla2/.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 32 Kilobyte records
DUMP: Estimated 348 blocks (174KB).
DUMP: NEEDS ATTENTION: Cannot open `pimpking:/jalla2/'. Do you want to retry the open?: ("yes" or "no") yes
DUMP: NEEDS ATTENTION: Cannot open `pimpking:/jalla2/'. Do you want to retry the open?: ("yes" or "no")



Guess there is an option or something that i dont get....
 
Old 06-01-2006, 03:31 PM   #6
shizzy-t
Member
 
Registered: Dec 2003
Location: Maine/USA
Distribution: Fedora Core, Centos, Solaris
Posts: 34

Rep: Reputation: 15
ufsdump is used to backing up to a tape drive and when it does the backup essentially creates a file on the tape device that contains all of the slice info you're backing. so it's a lot like tar.

if you wanted to back to a hard disk just created an empty file on the hard drive using touch

# touch /jalla2/backup.dump

then backup to the file

# ufsdump 0f /jalla2/backup.dump /jalla (or use the slice)

hope that helps
 
Old 06-01-2006, 03:43 PM   #7
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Original Poster
Rep: Reputation: 30
Thanks that helped alot, now i can continue to experiment

Ole
 
Old 06-16-2006, 11:23 AM   #8
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Rep: Reputation: 30
please check out the man page of ufsdump for the proper parameter
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The ufsdump command Gins Linux - General 3 08-22-2005 08:16 PM


All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration