help with back up please

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users help with back up please
# 8  
Old 10-18-2001
Thank you very much for your help guys.
Any other ideas will be appreciated.
# 9  
Old 10-18-2001
Originally posted by guest100

How do I backup the rest (inside files). I mean when for instance I backup /var/ does this mean that I back up everything inside the /var directory including all the sub-directories?

So I have several backups on the same tape. When I put the tape on and do a ufsrestore, you see only the first backup.(I suppose I have to rewind the tape before the restore , correct?

what happens when I do a ufsrestore -i
Am I able to choose ??

Thank you for your help
1) Yeah ufsdump will get all the files and subdirectories of /var provided that they are all in the same filesystem. If you create a separate mounted volume called /var/adm, well now you have to dump that separately. When you back up root, you get all of /bin and /lib, and so on. But you you still need /usr and /var as separate runs.

2) Yeah, you would need a rewind if you go to the restore immediately after the backup. Usually the restore comes long after the tape has been removed from the drive.

3) Yeah, the -i will let you pick and choose...a very cool feature.
# 10  
Old 10-18-2001
"When you back up root, you get all of /bin and /lib, and so on. But you you still need /usr and /var as separate runs."

Why do I have to do that?

I thought you said that ufsdump takes a snapshot of the sub-directories as well ( on the same file system)

Here is the output of the df -k

Filesystem kbytes used avail capacity Mounted on
/proc 0 0 0 0% /proc
/dev/dsk/c0t0d0s0 1987399 935141 992637 49% /
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s3 962571 667662 237155 74% /var
/dev/dsk/c0t0d0s4 962571 675981 228836 75% /home
/dev/dsk/c0t0d0s5 3009327 2065125 884016 71% /u01
/dev/dsk/c0t1d0s0 3009327 2262450 686691 77% /u02
/dev/dsk/c0t1d0s1 3009327 2318909 630232 79% /u03
/dev/dsk/c0t1d0s3 3009327 2938883 10258 100% /u04
swap 2811408 3296 2808112 1% /tmp

Thanks again
# 11  
Old 10-18-2001
We better go back a review filesystems here. When most kernels boot they initialize the system by automatically mounting root and they fire up init and a few other processes. At this point, the only thing mounted is root:
/dev/dsk/c0t0d0s0 1987399 935141 992637 49% /
If you are going into single user mode, it stops here and that is all you see. If you examined /var or /usr you would only have empty directiores since they are not yet mounted. All of the subdirecties and files that we do see are on /dev/dsk/c0t0d0s0.

But we have another disk device called c0t0d0s3 which we can now mount on /var. Once we do that we suddenly see /var/spool spring into existence. But /var/spool is on c0t0d0s3 while /etc/mail is on c0t0d0s0. They may seem to equally situated in some respects, but the difference is important.

Most people also will have a separate /usr filesystem. Looking again, I see that you don't. So I misspoke earlier when I said that you also needed /usr. In your case, you don't. You could possibly configure your system to only have one very large root filesystem...if you did, one ufsdump would do it all.

When you tell ufsdump to save a copy of c0t0d0s0, that is what it does. Sure it will pick up the /var empty directory that root uses as a mount point, but nothing under /var will be there. That's why we need another run of ufsdump to also save a copy of c0t0d0s3.
# 12  
Old 10-18-2001
The 'kernel' and 'init' issues was a good lesson, things that already new. I appreciate the correction though, now everything is clear. You really confused me when you said that I had to backup /usr as well, beacause I have already gave my file systems (partitions)above.
The reason that I didn't use one large file system is only for reduntancy.
Thank you very much for your help.

Aris :=)
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

I'm back

Hi all, I used to post here years ago, and was a moderator, my old username: zazzybob. Anyway, after a few years away focusing on my career, I'm back and keener than ever to get involved in the community again. I'm looking forward to getting back into the swing of things, helping... (11 Replies)
Discussion started by: tokiwinter
11 Replies

2. IP Networking

Back-to-Back Connection using HBAs

Hi every body, Is it possible to connect two servers Back-to-Back (Point-to-Point) using HBA adapters & using Fiber. Note it is direct connection & there is no switches between the servers. I'm concern about using HBA adapters, it is possible or not. Thanks in advance. :) (3 Replies)
Discussion started by: aldowsary
3 Replies

3. AIX

back to back printing in UNIX

Hi , Can you suggest me how to back to back printing in UNIX? Is there any way? Kindly advise. Regards Vijaya Amirtha Raj (3 Replies)
Discussion started by: amirthraj_12
3 Replies

4. Shell Programming and Scripting

back up

hi all i need to transfer files from one server to another,but i have to make up a backup with a datestamp on the destination server beore i move the new files from the source to the destination server. example source server destination server a.sun a.sun b.sun ... (0 Replies)
Discussion started by: bkan77
0 Replies

5. HP-UX

Help about back up

Hi this is new to this group, please help me about my question, i am using HP-UX11.11i with oracle 10G this server is in india and i have another server in US with same HP-UX with oracle10G, what i want is i want to rename the local database in local HP server and copy the database from... (0 Replies)
Discussion started by: mcseramana
0 Replies
Login or Register to Ask a Question