Solved

Require guidance for system admin on linux and backup related question

Posted on 2006-06-20
6
247 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
  • 5
6 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 150 total points
Comment Utility
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
Comment Utility
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
Comment Utility
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:Prerak123
Comment Utility
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
Comment Utility
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
Comment Utility
>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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now