{"id":5882,"date":"2016-05-11T13:01:47","date_gmt":"2016-05-11T03:01:47","guid":{"rendered":"http:\/\/nsrd.info\/blog\/?p=5882"},"modified":"2018-12-11T10:55:20","modified_gmt":"2018-12-11T00:55:20","slug":"basics-recovering-data-backed-up-over-nfs","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2016\/05\/11\/basics-recovering-data-backed-up-over-nfs\/","title":{"rendered":"Basics: Recovering Data Backed up over NFS"},"content":{"rendered":"<p>Backing up data from an NFS mount-point is not ideal, but sometimes we don&#8217;t have a&nbsp;choice.<\/p>\n<p><a href=\"https:\/\/nsrd.info\/blog\/2016\/05\/11\/basics-recovering-data-backed-up-over-nfs\/nfs-backup\/\" rel=\"attachment wp-att-5883\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5883\" src=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2016\/05\/NFS-Backup.jpg\" alt=\"NFS Backup\" width=\"707\" height=\"153\" srcset=\"https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2016\/05\/NFS-Backup.jpg 707w, https:\/\/nsrd.info\/blog\/wp-content\/uploads\/2016\/05\/NFS-Backup-300x65.jpg 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/a><\/p>\n<p>There&#8217;s a few reasons you&nbsp;might end up in this situation \u2013 you might need to backup data on a particularly old system&nbsp;that no longer has a&nbsp;NetWorker client available (or perhaps never did), or you might need to backup a consumer-grade NAS that doesn&#8217;t support NDMP.<\/p>\n<p>In this case, it&#8217;s the latter I&#8217;m doing&nbsp;having rejigged my home test lab.&nbsp;Having real data to test with is always good, and <a href=\"https:\/\/nsrd.info\/blog\/2015\/05\/01\/files-and-files-and-files\/\" target=\"_blank\">rather than using my filesystem generator<\/a> tool I decided to backup my Synology&nbsp;NAS over NFS, with the&nbsp;fileshares directly mounted on&nbsp;the backup server. A backup is all well and good, but being able to&nbsp;<em>recover<\/em> the data is always important. While I&#8217;m not worried about ACLs\/etc, I did want to know I was successfully backing up the data, so I ran a recovery test and was reminded of an old chestnut in how recoveries work.<\/p>\n<pre>[root@orilla Documents]# <strong>recover -s orilla<\/strong>\n4181:recover: Path \/synology\/pmdg\/Documents is within othalla:\/volume1\/pmdg\n53362:recover: Cannot start session with server orilla: Client 'othalla.turbamentis.int' is not properly configured on the NetWorker Server or 'othalla.turbamentis.int'(if not a virtual host) is not in the aliases list for client 'orilla.turbamentis.int'.\n88866:nsrd: Client 'othalla.turbamentis.int' is not properly configured on the NetWorker Server\nor 'othalla.turbamentis.int'(if not a virtual host) is not in the aliases list for client 'orilla.turbamentis.int'.<\/pre>\n<p>Basically what the recovery error is saying that NetWorker has detected the path we&#8217;re sitting on\/trying to recover from actually resides on a different host, and that host doesn&#8217;t appear to be a valid NetWorker client. Luckily, there&#8217;s a simple solution. (While the best solution might be a budget request with the home change board to buy a small Unity system, I&#8217;d just spent my remaining budget on&nbsp;home lab server upgrades, so I felt it best not to file that request.)<\/p>\n<p>In this case the&nbsp;NFS mount was on the NetWorker server itself, so all I had to do was to tell NetWorker I wanted to recover from the NetWorker client:<\/p>\n<pre>root@orilla Documents]# <strong>recover -s orilla -c orilla<\/strong>\nCurrent working directory is \/synology\/pmdg\/Documents\/\nrecover&gt; <strong>add \"Stop, Collaborate and Listen.pdf\"<\/strong>\n\/synology\/pmdg\/Documents\n1 file(s) marked for recovery\nrecover&gt; <strong>relocate \/tmp<\/strong>\nrecover&gt; <strong>recover<\/strong>\nRecovering 1 file from \/synology\/pmdg\/Documents\/ into \/tmp\nVolumes needed (all on-line):\n  Backup.01 at Backup_01\nTotal estimated disk space needed for recover is 1532 KB.\nRequesting 1 file(s), this may take a while...\nRecover start time: Sun 08 May 2016 18:28:46 AEST\nRequesting 1 recover session(s) from server.\n129290:recover: Successfully established direct file retrieve session for save-set ID '2922310001' with adv_file volume 'Backup.01'.\n.\/Stop, Collaborate and Listen.pdf\nReceived 1 file(s) from NSR server `orilla'\nRecover completion time: Sun 08 May 2016 18:28:46 AEST\nrecover&gt; <strong>quit<\/strong><\/pre>\n<p>And that&#8217;s&nbsp;how simple the process is.<\/p>\n<p>While ideally we shouldn&#8217;t be doing this sort of backup \u2013 a double network transfer&nbsp;is hardly bandwidth efficient, it&#8217;s always good to keep it in your repertoire&nbsp;<em>just in case<\/em> you need it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Backing up data from an NFS mount-point is not ideal, but sometimes we don&#8217;t have a&nbsp;choice. There&#8217;s a few reasons&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,19],"tags":[138,1194,788],"class_list":["post-5882","post","type-post","status-publish","format-standard","hentry","category-basics","category-recovery","tag-backup","tag-nfs","tag-recover"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-1wS","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/5882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/comments?post=5882"}],"version-history":[{"count":3,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/5882\/revisions"}],"predecessor-version":[{"id":7414,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/5882\/revisions\/7414"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=5882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=5882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=5882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}