Solved

Require guidance for system admin on linux and backup related question

Posted on 2006-06-20
6
252 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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

739 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