Solved

Require guidance for system admin on linux and backup related question

Posted on 2006-06-20
6
253 Views
Last Modified: 2013-12-16
Hi everybody
I am new user to Linux and having my datatase server as oracle 11i.I want to take the backup of usr,bin,lib,var,opt,etc(except dev ) directory which are located under the root.Before I was using windows.Now I want to copy these folders for backup.I want to copy these folders into one partition having enough space.I have a doubt that will copy these folders will make any harm to the server or not.Because in windows when we copy the system files it shows that can't copy the files is in use.Will it give similar error in linux?Or I should proceed?
                                      The other question is that if i want to install a driver which is not part of the kernel residual module but it is inside the /usr/src/linux2.4.21-9.0.1/kernel/net/8139too.o (I know this is a residual modul,but for instance just image that it is not part of the residual module).What should I do to make this module be inserted in the /lib/2.4.21-9.0.1.EL/kernel/driver/net
Please help me
hope for early reply
0
Comment
Question by:Prerak123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
6 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 150 total points
ID: 16940636
Simplest and easiest way to backup a folder is with copy (cp):

cp -R /usr /backup/partition

This recursively copies the directory usr into the backup partition.

man cp

for more info.

Of course we could use tar:

tar cvf /usr /backup/partition

Other utilities are available such as cpio et

man tar
man cpio

As a minor point if you are asking 2 questions - always put them in seperate questions - it makes things easier for those answering, and also means that you get a more 'focussed' answer.

To install a module, you need the command:

insmod usr/src/linux2.4.21-9.0.1/kernel/net/8139too.o

You can confirm that the module has been installed by typing:

lsmod

HTH:)
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16940657
usr,bin,lib,var,opt,etc

Of these var will be in use (log files), and you'll get a copy of the log file at the time the copy starts - These means that all the log files will not be a 'perfect' snapshot! Otherwise the copy should be fine for most needs. If you don't have permissions to read the files concerned, then yes you will get an error!
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16940671
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 

Author Comment

by:Prerak123
ID: 16941822
Thanx
I will proceed the backup of folder as mentioned by you.It means copying folder is not harmful for me and will not say files is in use except the var folder.
I tried to install module
insmod /usr/src/linux-2.4.21-4.0.1-ELsmp/driver/net/8139too.c
8139too.c : 8139too.c is not an ELF file

what is ELF file
for your conviniency I increase 50 points
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17064607
An ELF(executable and linking format) file is a standard for executeable files:

http://www.gsp.com/cgi-bin/man.cgi?section=5&topic=elf

for the structure expected of an ELF file.

(   (()
(`-' _\
 ''  ''
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17064615
>insmod /usr/src/linux-2.4.21-4.0.1-ELsmp/driver/net/8139too.c
>8139too.c : 8139too.c is not an ELF file

Partly my fault! If you compile the src (source code) you'll get an executable that will normally end in .o or .ko It is probably that you have not compiled your source from scratch.

Try looking in:

/lib

instead for the .o or .ko file. Otherwise you may need to compile the source.

(   (()
(`-' _\
 ''  ''
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question