Very nice! Do you know how I could do consequent levels using a crontab?
Main Topics
Browse All TopicsHi All,
I just got an LTO backup tape device for my E450, previously I used to connect to another DLT backup driver on another Solaris machine using rhosts setting. Anyway, my boss wants me to take a full backup (ufsdump) first time, and then take incremental backups during the week for a test, then he wants me to restore something from the middle of the week.
Something new for me. Anyone know any helpfull documents? Any personal experiences? and how would you retrieve from the backup with an incremental backup being done?
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
well you put all the sessions into a shell-script and start the apropriate script at the apropriate day... let's say you put
ufsdump 0vf /dev/rmt/1n /
ufsdump 0vf /dev/rmt/1n /usr
ufsdump 0vf /dev/rmt/1 /export/home
into a script that starts at the weekend
and
ufsdump 1vf /dev/rmt/1n /
ufsdump 1vf /dev/rmt/1n /usr
ufsdump 1vf /dev/rmt/1 /export/home
into another script that starts during weekdays (in the evening)
so in case of failure you need 2 tapes... the one of the weekend and the one from last night.
or
you create 5 script, one with level 0, one with level 1, one with level 2 and so on.
then you start level0-script at the weekend, level 1 script on monday evening, level 2 script on tuesday evening and so on.
this second version means that only the changes since last day are backed up during weekdays (as opposed to the solution above where everything since last weekend was backed up), which makes backup faster during the week, but in case of failure on a friday youwould need 5 tapes to restore everything (weekendtape and the ones from every evening)
neteducation has pointed you to the right direction, for full system backup you need to
check /etc/vfstab to find out the partitions you have, and then use ufsdump to the tape:
eg,
if you have / /usr /var /export partitions, and the tape drive name is /dev/rmt/0n
(replace it with your real divice name), you do:
mt -f /dev/rmt/0 rewind
$ for fs in / /usr /var /export ; do
/usr/sbin/ufsdump 0cf /dev/rmt/0n $fs
done
see http:Q_20273285.html for more details.
You can alway put the commands in a script and use cron to run the script .
Business Accounts
Answer for Membership
by: neteducationPosted on 2005-04-10 at 02:01:47ID: 13746475
- You physicaly connect your drive to your machine
- You run devfsadm to have the system rescan your hardware
- You check your /dev/rmt-Directory for newly created devices. There will be about 20 called i.e. 1,1n,1l,1ln and so on.
- Then let's suppose you have three partitions: /,/usr and /export/home... and you want to backup all of them onto one tape... so you do the following:
ufsdump 0vf /dev/rmt/1n /
ufsdump 0vf /dev/rmt/1n /usr
ufsdump 0vf /dev/rmt/1 /export/home
Using device /dev/rmt/1n means no rewind after usage. on your last session you use /dev/rmt/1 which means rewind the tape
During the week you do usfdump 1vf /dev/rmt/.... (same as before, but dumplevel 1) which does an incremental backup since last level 0, or you could use level1 on monday, level 2 on tuesday level3 on wednesday and so on... which would backup only the differences since last day.
to restore you put the tape with the full backup and wind the tape to the correct possition, using mt-command. let's suppose you want to restore /export/home-partition, then you use
mf -f /dev/rmt/1n fsf 2
(which forwards the tape 2 sessions)
and then
ufsrestore rvf /dev/rmt/1 to restore the entire partition.
for more details see manpages of ufsdump/ufsrestore... they explain it pretty well