![]() ![]() Create a script to mount the share echo "#!/bin/bash" > /path/to/script-mount.shĮcho "mount /mnt/SHARE" > /path/to/script-mount.shĮcho "exit 0" > /path/to/script-mount.shĥ. Add the mount point to /etc/fstab sudo echo "//SHARE-DOMAIN-NAME/SHARED-FOLDER-PATH /mnt/SHARE cifs credentials=/path/to/credentials-file,iocharset=utf8,sec=ntlmssp 0 0" > /etc/fstabĤ. Assign the desirable access permission to the credentials file chown root:root /path/to/credentials-fileģ. Note: The third line is not required for a workgroup shared folder or a Linux-based NAS deviceĢ. #Mac network drive does not unmount password#Note: No need to escape any special symbols in your password with the backslash Create the file with the access credentials to the network share echo "username=USERNAME" > /path/to/credentials-fileĮcho "password=PASSWORD" > /path/to/credentials-fileĮcho "domain=DOMAIN" > /path/to/credentials-file Note: For macOS it should be root:wheel instead - the same is correct for all usage of root:rootġ. Note: If you choose to use another user:group, make sure to set the same user:group in step 2 Change the backup plan ownership to the user who is allowed to mount network shares sudo chown root:root /opt/local/CloudBerry\ Backup/etc/plans/* This article is based on Ubuntu 18 and a Windows 2012R2 domain network share.Ġ. The backup will be performed by CloudBerry Backup for LinuxĪlso, the commands syntax may differ for various Linux distributions and/or SMB configurations (in case it's a Linux-based NAS device).This shared folder is used for backup (whether as the source or the destination, does not matter).There is a domain shared folder that serves as a file share.Note: While most of the information in this article is valid regardless of which version of CloudBerry Backup is used, the most important part (the -preAction and -postAction options) are only available since Backup for Linux v 2.9 Mounting/Unmounting Network Shares Before or After Backup
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |