How to save images to a network drive via smb or nfs
This article applies to:
- Acronis True Image 9.1 Server for Linux
- Acronis True Image 9.1 Enterprise Server Linux Agent
- Acronis True Image Echo Server for Linux
- Acronis True Image Echo Enterprise Server Linux Agent
- Acronis Backup & Recovery 10 Server for Linux
Solution
There are two ways to save images to a network drive (via smb or nfs):
-
The first way is to mount (please see man mount for the reference) your share and then specify the mounted folder as a target for your backup archive.
-
The second way is to back up directly to the NFS or SMB share. Both trueimagecmd and Acronis True Image Server for Linux transparently support NFS and SMB protocols.
More information
Here is an instant example:
-
trueimagecmd --list --filename:nfs://dhcp6-223.acro-nis.com/sdb3/nfs_root:/mike/MyBackup.tib
shows list of partitions contained in /mike/MyBackup.tib archive. /mike/MyBackup.tib is located on dhcp6-223.acronis.com node in /sdb3/nfs_root directory exported by NFS.
To get Samba network access the filename must be specified as follows:
-
smb://hostname/share_name/remote_filename
hostname may be specified with the username and password as follows:
-
username:password@hostname
- domain\\username:password (if the target share is in a Windows domain
(!) Please pay attention to the double backslash (\\). It must be specified to make Linux shell treat the backslash correctly.
Here is an example of how to back up to a Windows domain share:
- trueimagecmd --harddisk:1 --filename:smb://domain\\username:password@hostname/share_name/archive.tib