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:
LOGIN
— login of the storage userPASSWORD
— password of the storage userSERVER
— server address of the storage userPATH
is the path where the repository will be mountedTo 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 //u123456.your-storagebox.de/backup /home/storagebox/
An example of mounting an additional storage user to the system:
mount.cifs -o user=u123456-sub1,pass=MSLUwfPFgbjw2HNj //u123456-sub1.your-storagebox.de/u123456-sub1 /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
All question categories