Use NFS
Mount an NFS Share
If you use RedHat, please make sure that nfs-utils is installed before you try to mount:
yum install nfs-utils
To establish a connection to a share/mount-point you need to add an entry like below to /etc/fstab
:
Raw Command:
<ip>:/<volumeId>/<shareName>/ <your mount-point> nfs nfsvers=4.0,async,hard,nointr,bg,tcp,rsize=65536,wsize=65536
Example:
192.168.2.4:/fb75_b1a3_0001/3abc22ab9f0 /mtn/swisscom nfs nfsvers=4.0,async,hard,nointr,bg,tcp,rsize=65536,wsize=65536
The exact mount URI and an example command for a temporary mount can be found in the Swisscom Portal as shown in the screenshot below.
If the share is to be mounted only temporarily (until the next reboot) you can also simply execute the red marked command in your shell.
Restore Local NFS Snapshot
The local snapshots are located in the .snapshot
directory of the respective share.
Example
root@UBUNTU1604--001:/<your mount-point>/.snapshot# ls -asl
total 156
4 drwxrwxrwx 39 root root 4096 Jun 25 10:10 .
4 drwxr-xr-x 2 root root 4096 Jun 7 08:59 ...
4 drwxr-xr-x 2 root root 4096 Jun 7 08:59 d10.2019-06-18_1910
4 drwxr-xr-x 2 root root 4096 Jun 7 08:59 d10.2019-06-19_1910
…<br>
4 drwxr-xr-x 2 root root 4096 Jun 7 08:59 h10.2019-06-25_0710
4 drwxr-xr-x 2 root root 4096 Jun 7 08:59 h10.2019-06-25_1010
4 drwxr-xr-x 2 root root root 4096 Jun 7 08:59 snapmirror.d2535f76-8906-11e9-8f21-00a0989dee7c_2155284212.2019-06-24_225000
4 drwxr-xr-x 2 root root 4096 Jun 7 08:59 w1910.2019-06-22_1910
With Linux commands (cp, ls, ..)
the different backups can be viewed and copied back.