1296 - How to store a Linux ESE local copy on a network share

Modified on Tue, 5 Aug at 1:12 PM

While the user interface of our ESE agent for Linux does not currently allow the selection of a network share as the location for a local backup copy, this can be circumvented by mounting the network share at boot time and then selecting that location to store the local copy. This can be done for either NFS or CIFS shares.

While the data is encrypted, it is recommended that the network share be suitably protected. Note that the local copy is written and read as

root:backuppro


and the network share must be configured to allow this. Consult your Operating System documentation for details.

In the examples below, we will mount the share in the default location (/var/opt/backuppro/data/Local Copy). You can also choose a different location.

 

How to store a local copy on a network share

1. Create the local copy directory, if it does not exist already, using the following command:

mkdir "/var/opt/backuppro/data/Local Copy"

 

2. In the ESE Agent under Tools > Options > Local Backup Copyenable local copy. Ensure that the location is set to /var/opt/backuppro/data/Local Copy.

3. Follow the relevant instructions below to mount the network share at this location.

 

NFS

If you wish to store the local copy on an NFS share at, for example, 192.168.1.123:/data/local_copy, you can do so by appending the following line to the /etc/fstab file:

192.168.1.123:/data/local_copy /var/opt/backuppro/data/Local\040Copy nfs defaults 0 0

 

Mount the NFS share manually, or reboot to ensure it is mounted successfully at boot time:

mount -a -t nfs

 

Note that because the local copy is written and read as root:backuppro, the server may need to squash the root user to another user that may write to the share, or export the share with the no_root_squash option (not recommended).

 

CIFS

If you wish to store the local copy on, for example, the CIFS share \\fileserver\LocalCopy, you can do so by appending the following line to the /etc/fstab file:

//fileserver/LocalCopy /var/opt/backuppro/data/Local\040Copy cifs credentials=/etc/opt/backuppro/cifs_credentials,
uid=root,gid=backuppro,file_mode=0660,dir_mode=0770 0 0

 

Add the necessary credentials to the file /etc/opt/backuppro/cifs.credentials as follows:

username=MyUser
password=MyPassword

 

To protect the credentials, ensure the credentials file can only be accessed by the root user:

chown root:root /etc/opt/backuppro/cifs.credentials
chmod 0600 /etc/opt/backuppro/cifs.credentials

 

Mount the CIFS share manually, or reboot to ensure it is mounted successfully at boot time:

mount -a -t cifs
 
 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article