Help and support

Mounting the repository to the Linux file system

On Linux-based operating systems, you can mount a repository in the file system of your server using the CIFS protocol with the command, depending on which user of the repository is used - primary or secondary:

 mount.cifs -o user=LOGIN,pass=PASSWORD //SERVER/backup PATH

In the command, you should substitute:

  1. LOGIN — login of the storage user
  2. PASSWORD — password of the storage user
  3. SERVER — server address of the storage user
  4. PATH is the path where the repository will be mounted

To stop mounting, execute the command:

 umount -l PATH

An example of mounting to the system of the main user of the repository:

 mount.cifs -o user=u123456,pass=Du6DnBRjMLdTXXBi // /home/storagebox/

An example of mounting an additional storage user to the system:

 mount.cifs -o user=u123456-sub1,pass=MSLUwfPFgbjw2HNj // /home/storagebox/

By adding the following line to /etc/fstab the repository will be mounted automatically at system startup:

 //LOGIN.SERVER/backup /home/storagebox/ cifs iocharset=utf8,rw,credentials=/home/storagebox-credentials.txt,uid=SYSTEM_ACC,gid=SYSTEM_GROUP,file_mode=0660,dir_mode=0770 0 0

The /home/storagebox-credentials.txt file should have chmod 0600 and contain two lines with the user's login and password:

 username=LOGIN password=PASSWORD

Similar articles