mac_g
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/admi nsrv -- /u01/app/oracle/admin
10.17.0.5:/export/SAP_APP1 /APP1_doma in01 -- /u01/app/oracle/APP1_domai n
10.17.0.5:/export/SAP_SHRD _APP1/mwho me -- /u01/app/oracle/fmw
10.17.0.5:/export/SAP_APP1 /APP1_inst ance01 -- /u01/app/oracle/APP1_insta nce01
==
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 ..
==
10.17.0.5:/export/SAP_SHRD
10.17.0.5:/export/SAP_APP1
10.17.0.5:/export/SAP_SHRD
10.17.0.5:/export/SAP_APP1
==
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 ..
ASKER
#cp --command
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?
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?
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 ..
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
For cp command, cp -r should copy sub directories as well.
Using cp -r /u01
should copy all sub dirs as well.
ASKER
@skullnobrains, Got my answer to the point.
@omarfarid, thanks
@omarfarid, thanks
Which tool / command you use?