{"id":316,"date":"2009-04-16T20:26:00","date_gmt":"2009-04-16T10:26:00","guid":{"rendered":"http:\/\/nsrd.wordpress.com\/?p=316"},"modified":"2018-12-12T16:21:47","modified_gmt":"2018-12-12T06:21:47","slug":"difficult-recover-scenarios","status":"publish","type":"post","link":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/","title":{"rendered":"Difficult &#8216;recover&#8217; scenarios"},"content":{"rendered":"<p>Even though I usually avoid using GUIs for recoveries*, given my main workstation is a Mac, I don&#8217;t have the option of using a NetWorker GUI for personal recoveries anyway.<\/p>\n<p>Over time I&#8217;ve become one of those users that many Unix sysadmins dislikes \u2013 I name files and folders with prefixes including:<\/p>\n<p>&#8211;<\/p>\n<p>*<\/p>\n<p>and<\/p>\n<p>#<\/p>\n<p>Heck, I even use ? and ? as directory prefixes.<\/p>\n<p>It caught me by surprise then when I tried to recover a directory called &#8220;-Proposal&#8221;. My natural inclination was to go to the parent directory of &#8220;-Proposal&#8221; and type:<\/p>\n<p>recover&gt; add -Proposal<\/p>\n<p>usage: add [-q] [filename] &#8211; add `filename&#8217; to list of files to be recovered<\/p>\n<p>As you can see, that didn&#8217;t particularly work.<br \/>\nNor did the following:<\/p>\n<p>recover&gt; add &#8212; -Proposal<\/p>\n<p>usage: add [-q] [filename] &#8211; add `filename&#8217; to list of files to be recovered<\/p>\n<p>Nor did:<\/p>\n<p>recover&gt; add &#8216;-Proposal&#8217;<\/p>\n<p>usage: add [-q] [filename] &#8211; add `filename&#8217; to list of files to be recovered<\/p>\n<p>As you can imagine, it was starting to get a little bit frustrating.<\/p>\n<p>To cut a long story short, in a scenario where you need to recover a directory that starts with a dash, you need to do something along the lines of the following:<\/p>\n<ol>\n<li>If the directory still exists, change into that directory in the shell, and run recover from there, <em>or<\/em><\/li>\n<li>Add the parent directory, then exclude the files\/directories you <em>don&#8217;t<\/em> need recovered, <em>or<\/em><\/li>\n<li>If the directory doesn&#8217;t exist, make the directory, change into that directory in the shell, and run recover from there.<\/li>\n<\/ol>\n<p>None of these are ideal solutions, but they do work. I hope, if you need to recover such a directory, you manage to stumble across this tip or you remember it &#8211; there are few things worse than worrying that something you <em>really<\/em> need to recover seems an impossibility.<\/p>\n<p>&#8212;<br \/>\n* If you can&#8217;t turn off a file-by-file selection when you&#8217;re adding 10,000,000 files, a GUI is painful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even though I usually avoid using GUIs for recoveries*, given my main workstation is a Mac, I don&#8217;t have the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[16],"tags":[38,788],"class_list":["post-316","post","type-post","status-publish","format-standard","hentry","category-networker","tag-38","tag-recover"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Recovering files with special characters in the name is easy. It&#039;s selecting them that requires careful consideration.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Preston de Guise\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Data Protection Hub | All things Data Protection\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Difficult \u2018recover\u2019 scenarios | Data Protection Hub\" \/>\n\t\t<meta property=\"og:description\" content=\"Recovering files with special characters in the name is easy. It&#039;s selecting them that requires careful consideration.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-04-16T10:26:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2018-12-12T06:21:47+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Difficult \u2018recover\u2019 scenarios | Data Protection Hub\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Recovering files with special characters in the name is easy. It&#039;s selecting them that requires careful consideration.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#article\",\"name\":\"Difficult \\u2018recover\\u2019 scenarios | Data Protection Hub\",\"headline\":\"Difficult &#8216;recover&#8217; scenarios\",\"author\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/author\\\/nsrd\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d274b0939f505e2f4b85a111bdf61ff0fafc11f17dcd667d16a47d0a3de63a1d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Preston de Guise\"},\"datePublished\":\"2009-04-16T20:26:00+10:00\",\"dateModified\":\"2018-12-12T16:21:47+10:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#webpage\"},\"articleSection\":\"NetWorker, -, recover\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nsrd.info\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/category\\\/networker\\\/#listItem\",\"name\":\"NetWorker\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/category\\\/networker\\\/#listItem\",\"position\":2,\"name\":\"NetWorker\",\"item\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/category\\\/networker\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#listItem\",\"name\":\"Difficult &#8216;recover&#8217; scenarios\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#listItem\",\"position\":3,\"name\":\"Difficult &#8216;recover&#8217; scenarios\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/category\\\/networker\\\/#listItem\",\"name\":\"NetWorker\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/#person\",\"name\":\"Preston de Guise\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d274b0939f505e2f4b85a111bdf61ff0fafc11f17dcd667d16a47d0a3de63a1d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Preston de Guise\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/author\\\/nsrd\\\/#author\",\"url\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/author\\\/nsrd\\\/\",\"name\":\"Preston de Guise\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d274b0939f505e2f4b85a111bdf61ff0fafc11f17dcd667d16a47d0a3de63a1d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Preston de Guise\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#webpage\",\"url\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/\",\"name\":\"Difficult \\u2018recover\\u2019 scenarios | Data Protection Hub\",\"description\":\"Recovering files with special characters in the name is easy. It's selecting them that requires careful consideration.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/2009\\\/04\\\/16\\\/difficult-recover-scenarios\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/author\\\/nsrd\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/author\\\/nsrd\\\/#author\"},\"datePublished\":\"2009-04-16T20:26:00+10:00\",\"dateModified\":\"2018-12-12T16:21:47+10:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/\",\"name\":\"Data Protection Hub\",\"description\":\"All things Data Protection\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/nsrd.info\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Difficult \u2018recover\u2019 scenarios | Data Protection Hub","description":"Recovering files with special characters in the name is easy. It's selecting them that requires careful consideration.","canonical_url":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#article","name":"Difficult \u2018recover\u2019 scenarios | Data Protection Hub","headline":"Difficult &#8216;recover&#8217; scenarios","author":{"@id":"https:\/\/nsrd.info\/blog\/author\/nsrd\/#author"},"publisher":{"@id":"https:\/\/nsrd.info\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/d274b0939f505e2f4b85a111bdf61ff0fafc11f17dcd667d16a47d0a3de63a1d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Preston de Guise"},"datePublished":"2009-04-16T20:26:00+10:00","dateModified":"2018-12-12T16:21:47+10:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#webpage"},"isPartOf":{"@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#webpage"},"articleSection":"NetWorker, -, recover"},{"@type":"BreadcrumbList","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/nsrd.info\/blog#listItem","position":1,"name":"Home","item":"https:\/\/nsrd.info\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/nsrd.info\/blog\/category\/networker\/#listItem","name":"NetWorker"}},{"@type":"ListItem","@id":"https:\/\/nsrd.info\/blog\/category\/networker\/#listItem","position":2,"name":"NetWorker","item":"https:\/\/nsrd.info\/blog\/category\/networker\/","nextItem":{"@type":"ListItem","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#listItem","name":"Difficult &#8216;recover&#8217; scenarios"},"previousItem":{"@type":"ListItem","@id":"https:\/\/nsrd.info\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#listItem","position":3,"name":"Difficult &#8216;recover&#8217; scenarios","previousItem":{"@type":"ListItem","@id":"https:\/\/nsrd.info\/blog\/category\/networker\/#listItem","name":"NetWorker"}}]},{"@type":"Person","@id":"https:\/\/nsrd.info\/blog\/#person","name":"Preston de Guise","image":{"@type":"ImageObject","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/d274b0939f505e2f4b85a111bdf61ff0fafc11f17dcd667d16a47d0a3de63a1d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Preston de Guise"}},{"@type":"Person","@id":"https:\/\/nsrd.info\/blog\/author\/nsrd\/#author","url":"https:\/\/nsrd.info\/blog\/author\/nsrd\/","name":"Preston de Guise","image":{"@type":"ImageObject","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d274b0939f505e2f4b85a111bdf61ff0fafc11f17dcd667d16a47d0a3de63a1d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Preston de Guise"}},{"@type":"WebPage","@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#webpage","url":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/","name":"Difficult \u2018recover\u2019 scenarios | Data Protection Hub","description":"Recovering files with special characters in the name is easy. It's selecting them that requires careful consideration.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/nsrd.info\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/#breadcrumblist"},"author":{"@id":"https:\/\/nsrd.info\/blog\/author\/nsrd\/#author"},"creator":{"@id":"https:\/\/nsrd.info\/blog\/author\/nsrd\/#author"},"datePublished":"2009-04-16T20:26:00+10:00","dateModified":"2018-12-12T16:21:47+10:00"},{"@type":"WebSite","@id":"https:\/\/nsrd.info\/blog\/#website","url":"https:\/\/nsrd.info\/blog\/","name":"Data Protection Hub","description":"All things Data Protection","inLanguage":"en-US","publisher":{"@id":"https:\/\/nsrd.info\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Data Protection Hub | All things Data Protection","og:type":"article","og:title":"Difficult \u2018recover\u2019 scenarios | Data Protection Hub","og:description":"Recovering files with special characters in the name is easy. It's selecting them that requires careful consideration.","og:url":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/","article:published_time":"2009-04-16T10:26:00+00:00","article:modified_time":"2018-12-12T06:21:47+00:00","twitter:card":"summary","twitter:title":"Difficult \u2018recover\u2019 scenarios | Data Protection Hub","twitter:description":"Recovering files with special characters in the name is easy. It's selecting them that requires careful consideration."},"aioseo_meta_data":{"post_id":"316","title":null,"description":"Recovering files with special characters in the name is easy. It's selecting them that requires careful consideration.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 05:12:09","updated":"2025-07-20 04:12:30","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/nsrd.info\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/nsrd.info\/blog\/category\/networker\/\" title=\"NetWorker\">NetWorker<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tDifficult \u2018recover\u2019 scenarios\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/nsrd.info\/blog"},{"label":"NetWorker","link":"https:\/\/nsrd.info\/blog\/category\/networker\/"},{"label":"Difficult &#8216;recover&#8217; scenarios","link":"https:\/\/nsrd.info\/blog\/2009\/04\/16\/difficult-recover-scenarios\/"}],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pKpIN-56","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/316","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=316"}],"version-history":[{"count":1,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":7671,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/posts\/316\/revisions\/7671"}],"wp:attachment":[{"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/categories?post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsrd.info\/blog\/wp-json\/wp\/v2\/tags?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}