0

I have had such situation: window's CIFS has already been mounted to /home/external/backup directory on Linux(RHAT7).

Also, I have configured some backup system that has stored files into /home/backup directory. Now I can't change the path for the backup. CIFS mount directory can't be changed too.

Is there any ability to mount CIFS directory to the exisiting home/backup directory so that the backups can be stored in CIFS directory?

1

you can look that up on redhats knowlegebase: RedHat

Windows share can be mounted on RHEL system using cifs option of mount command as :

[root@host ~]# mount -t cifs -o username=<share user>,password=<share password> //WIN_PC_IP/<share name> /mnt

In case your user is in windows domain then you can define the domain as follows:

[root@host ~]# mount -t cifs -o username=<share user>,password=<share password>,domain=example.com //WIN_PC_IP/<share name> /mnt

EDIT If Cifs Support is missing try running

yum install cifs-utils

  • Welcome to USE! When referring to external sites for solution, you should always quote/summarise the solution in your answer so that when the link will break (it will) your answer would still have all the required information. See unix.stackexchange.com/help/how-to-answer for more on how to write good answers. – zagrimsan Oct 4 '16 at 6:52
0

The only way to do this is to unmount and then remount CIFS directory to the directory where backup files are stored using such commands as:

unmount CIFS directory:

umount /mnt

mount CIFS directory to the folder where the backups are stored:

mount -t cifs -o username=<share user>,password=<share password> //WIN_PC_IP/<share name> /home/backup

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.