![]() |
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| AIX backup and restore | quickfirststep | AIX | 3 | 09-07-2006 07:59 PM |
| F-Backup restore | paultittel | HP-UX | 3 | 06-27-2006 10:46 AM |
| Backup and restore | uXion | AIX | 3 | 06-25-2006 10:02 PM |
| Backup / restore | tt155 | SUN Solaris | 4 | 01-22-2006 01:39 PM |
| Cannot restore a TAR backup | Ross.Goodman | UNIX for Dummies Questions & Answers | 2 | 10-20-2000 05:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Restores slower than backups - Part of the explaination I don't totally agree with (an assumption that there is a backup server
Quote:
|
|
|||||
|
Most local dump programs are implemented as multiple processes. There are several data readers feeding one tape writer process. You can usually write fast enough that the tape drive won't stop moving. (These multiple processes could be viewed as client/server
Not what he meant I know...) He's right that file creation is slow. (Especially if you have directories) But it's enough that the tape drive will often stop and must be restarted. That contributes a lot to the slowness. For some reason, tape drives are much faster if you keep the tape moving. But I'm not a hardware guy so I don't know why this is. |
|
|||||
|
OK. That makes a good deal of sense. I have to assume then that the backup program doesn't actually store the attributes with the file, but in a separate store of some kind. Especially in the case of a raw dump type utility. This would explain why, when my restore completed, I am prompted with a question asking if I want to restore owner:group attributes. So, my files are probably written from the tape to the drive with the owner:group set to the user who is running the restore (in my case 'root'). Afterwards, the final process runs through the restored files and then does a chown on each of them. Hehehe... I think there is also the distinct possibility that the tape drive I'm dealing with just has crappy performance in Solaris too.
|
|
||||
|
Sounds like you did a sequential ufsdump - which is a lot faster than an interactive ufsrestore (Where the tape heads are jumping around more based on yor selection criteria (e.g add/extract)). During an Solaris interactive restore, you generally just select the file(s) you require restoring from the filesystem (e.g a config file like /etc/hosts), although you can just select (add) everything and carry on with the restore. (if you have selected a ufsrestore ivf, the verbose option will also slow things down)
For a simple clean backup, I usually take a complete UFS level 0 dump; something like this ... to dump ... mt -f /dev/rmt/0 rewind # rewind the tape for i in `/ /var /opt /export/home /opt/{filesystem} /opt/{filesystem}` do ufsdump 0f /dev/rmt/0n $i echo "Completed ufs dump level 0 of $i ... " done echo "backup completed ... " mt -f /dev/rmt/0 rewind mt -f /dev/rmt/0 offline # eject the tape Then try restoring the whole filesystem as follows with a similar script/set of commands ... use mt -f /dev/rmt/0 fsf or bsf to move to the markers on the tape and when your happy you have the correct filesystem, complete a ufsrestore 0f /dev/rmt/0n (no rewind) to your filesystem. Should be quicker? If you want to be even more fancy (in terms of potentially dealing with less data to backup), you could take incremental backups, which means you will only have to backup data that has changed from the last ufsdump date. Restores can get a bit tricky and messy though. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|