Link to home
Start Free TrialLog in
Avatar of mac_g
mac_gFlag for Saudi Arabia

asked on

Linux : taking backup different mount points under the same directory

In our server, the mount points configured on the server as below

==
10.17.0.5:/export/SAP_SHRD_APP1/adminsrv   --  /u01/app/oracle/admin
10.17.0.5:/export/SAP_APP1/APP1_domain01   -- /u01/app/oracle/APP1_domain
10.17.0.5:/export/SAP_SHRD_APP1/mwhome     -- /u01/app/oracle/fmw
10.17.0.5:/export/SAP_APP1/APP1_instance01 -- /u01/app/oracle/APP1_instance01
==

Under  - /u01 different  directories are mounted to different paths,  to take the backup for  complete /u01 directory,  

what are possibilitei

1) Just /u01  would be enough  ?

-- OR --

2) Do we need to take, All 4 paths individually.

==


please advice ..
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

It depends on what tools or commands you will use.

Which tool / command you use?
Avatar of mac_g

ASKER

#cp    --command
Avatar of mac_g

ASKER

any update ?
cp with -r option will copy sub directories and don't know file systems boundaries.

If you want backup for individual file systems then you can use dump. Please see below link for man page:

https://linux.die.net/man/8/dump

You may restore file system backup taken by dump by using restore. Please see man page:

https://linux.die.net/man/8/restore

What is your exact requirement?
Avatar of mac_g

ASKER

@omar,

my question is different... you are refer that again.

different directories  under /u01, are mounted to different location.

to have the complete backup of /u01,  ..as asked above in Question

1) Do i need to take all 4 path location   OR 2) Just /u01 is enough.


Hope this is very clear now ..
ASKER CERTIFIED SOLUTION
Avatar of skullnobrains
skullnobrains

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I already explained. It depends on the tool / command use.

For cp command, cp -r should copy sub directories as well.

Using cp  -r /u01

should copy all sub dirs as well.
Avatar of mac_g

ASKER

@skullnobrains,  Got my answer to the point.


@omarfarid, thanks