{"id":129,"date":"2018-02-09T16:45:19","date_gmt":"2018-02-09T16:45:19","guid":{"rendered":"https:\/\/www.arqbackup.com\/blog\/?p=129"},"modified":"2020-06-09T19:05:02","modified_gmt":"2020-06-09T19:05:02","slug":"nas-backup","status":"publish","type":"post","link":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/","title":{"rendered":"NAS backup with Arq"},"content":{"rendered":"<p>Arq can backup NAS shares. Here&#8217;s how to set that up on a <a href=\"https:\/\/www.apple.com\/mac\/\">Mac<\/a>. (For Windows skip to the &#8220;NAS Backup on Windows&#8221; section.)<\/p>\n<p><strong>Please note:<\/strong> This article only applies to Arq 5. Arq 6 will take care of mounting the NAS for you.<\/p>\n<h2>NAS Backup on Mac<\/h2>\n<p>Arq will back up whatever folders you tell it to back up, but it doesn&#8217;t know where those folders really exist on your Mac. So, if you want to back up, say, a NAS that isn&#8217;t always connected, you may need to tell Arq to connect to the NAS first.<\/p>\n<h3>Step 1: Figure out how the Finder mounts your NAS<\/h3>\n<p>When you connect to your NAS to your Mac by browsing to it in the Finder, the Finder takes care of &#8220;mounting&#8221; the NAS volume for you. To find out how, browse to your NAS volume in the Finder; then open the Terminal app and type<\/p>\n<pre>mount<\/pre>\n<p>and press Return. One of the lines in the output will mention your NAS and look something like this:<\/p>\n<pre>\/\/stefan@big._afpovertcp._tcp.local\/bignas on \/Volumes\/bignas (afpfs, nodev, nosuid, mounted by stefan)<\/pre>\n<p>In my case, my NAS is called &#8220;big&#8221; and the share on it is called &#8220;bignas&#8221;. I connected to it with the username &#8220;stefan&#8221;. The Finder mounted it at \/Volumes\/bignas. The &#8220;afpfs&#8221; tag means the Finder mounted it using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Apple_Filing_Protocol\">AFP<\/a>; if you see &#8220;smbfs&#8221; instead, it means the Finder mounted it using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Server_Message_Block\">SMB<\/a>.<\/p>\n<p>To recap, the key items in that line are:<\/p>\n<ul>\n<li>&#8220;stefan&#8221; -&gt; the account name used to connect to the NAS device<\/li>\n<li>&#8220;big&#8221; -&gt; the name of the NAS device<\/li>\n<li>&#8220;bignas&#8221; -&gt; the name of the NAS share on the NAS device<\/li>\n<li>&#8220;afpfs&#8221; -&gt; the protocol used to connect to it<\/li>\n<\/ul>\n<h3>Step 2: Write a script to mount your NAS<\/h3>\n<p>Let&#8217;s make a script that mounts your NAS. Open TextEdit and click New Document to create a new text file. Click the Format menu and pick &#8220;Make Plain Text&#8221;. Then copy\/paste the following into Text Edit:<\/p>\n<pre>#!\/bin\/bash<br \/><br \/># If the NAS isn't reachable via ping, exit 1.<br \/># Otherwise, the osascript will pop up an unwanted dialog.<br \/>ping -c 1 <strong>big<\/strong>.local<br \/>if [[ $? -ne 0 ]]; then<br \/>    echo \"ping failed\"<br \/>    exit 1<br \/>fi<br \/><br \/>osascript &lt;&lt;EOD<br \/>tell application \"Finder\"<br \/>if not (disk \"<strong>bignas<\/strong>\" exists) then<br \/>mount volume \"<strong>afp<\/strong>:\/\/<strong>user<\/strong>:<strong>password<\/strong>@<strong>big<\/strong>\/<strong>bignas<\/strong>\"<br \/>end if<br \/>end tell<br \/>EOD<\/pre>\n<p>Then replace the bold items with the right values for your NAS:<\/p>\n<p><strong>big<\/strong>\u00a0(in 2 places!) -&gt; the name of the NAS device from Step 1<\/p>\n<p><strong>bignas<\/strong> (in 2 places!) -&gt; the name of the NAS share from Step 1<\/p>\n<p><strong>afp<\/strong> -&gt; the protocol found in Step 1 (&#8220;afp&#8221; if you see &#8220;afpfs&#8221; in Step 1; &#8220;smb&#8221; if you see &#8220;smbfs&#8221; in Step 1)<\/p>\n<p><strong>user<\/strong> -&gt; your account name on the NAS from Step 1<\/p>\n<p><strong>password<\/strong> -&gt; your account password on the NAS<\/p>\n<p>Pick File-&gt;Save from TextEdit&#8217;s menu and save your file as &#8220;MountNAS.sh&#8221; on your Desktop.<\/p>\n<h3>Step 3: Make the script executable<\/h3>\n<p>Back in Terminal, type:<\/p>\n<pre>chmod +x ~\/Desktop\/MountNas.sh<\/pre>\n<p>to make the script executable.<\/p>\n<h3>Step 4: Test the script<\/h3>\n<p>First, make sure your NAS isn&#8217;t already mounted by running:<\/p>\n<pre>mount<\/pre>\n<p>and checking the output for your NAS. If it&#8217;s already mounted, go to the Finder and click the button to &#8220;eject&#8221; (unmount) it.<\/p>\n<p><a href=\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/eject_nas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-155\" src=\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/eject_nas.png\" alt=\"\" width=\"192\" height=\"48\" \/><\/a><\/p>\n<p>Next, run your script in Terminal:<\/p>\n<pre>~\/Desktop\/MountNas.sh<\/pre>\n<p>It might take a few seconds to complete. If you now type:<\/p>\n<pre>mount<\/pre>\n<p>you should see a line for your NAS.<\/p>\n<h3>Step 5: Tell Arq to run the script before starting backup<\/h3>\n<p>Pick &#8220;Preferences&#8221; from Arq&#8217;s menu, click the Destinations tab, and double-click your destination.<\/p>\n<p>Click the &#8220;Before and After Backup&#8221; tab.<\/p>\n<p>Check &#8220;Run shell script before backup starts&#8221; and click the Choose button to find and select your MountNas.sh script. Then click Save, and close the Preferences window.<\/p>\n<p><a href=\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/mac_before_after_backup.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-140\" src=\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/mac_before_after_backup.png\" alt=\"Add shell script for NAS backup\" width=\"736\" height=\"474\" \/><\/a><\/p>\n<h3>Step 6: Add folder(s) from your NAS to Arq<\/h3>\n<p>Your NAS should still be mounted from Step 4. Pick &#8220;Add Folder to Backups&#8221; from Arq&#8217;s menu to add the folder(s) on the NAS that you want backed up.<\/p>\n<h3>Step 7: Test the backup<\/h3>\n<p>Go to the Finder and click the eject button to unmount your NAS.<\/p>\n<p>Pick &#8220;Back Up Now&#8221; from Arq&#8217;s menu. Arq will run the script to mount the NAS, and then back up the files you selected. Once the backup is underway, check in the Finder whether your NAS is mounted. If it didn&#8217;t mount, then Arq should report an error. If you need help finding the problem, please email us at <a href=\"mailto:support@arqbackup.com\">support@arqbackup.com<\/a>; we&#8217;re always happy to help!<\/p>\n<p>\u00a0<\/p>\n<h2>NAS Backup on Windows<\/h2>\n<p>On <a href=\"https:\/\/www.microsoft.com\/en-us\/windows\/\">Windows<\/a> the process is different. In Arq for Windows you can tell supply the parameters for connecting to the NAS and Arq Agent will connect it when it needs to access it.<\/p>\n<h3>Step 1: Add the NAS in Arq&#8217;s preferences<\/h3>\n<p>Pick &#8220;Preferences&#8221; from Arq&#8217;s menu, click the Network Volumes tab, and click &#8220;Add&#8230;&#8221; to add your NAS. Enter the UNC path, enter your credentials (if needed), and click OK.<\/p>\n<p><a href=\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/add_network_volume.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-144\" src=\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/add_network_volume.png\" alt=\"Add NAS to Arq\" width=\"454\" height=\"200\" \/><\/a><\/p>\n<h3>Step 2: Add folder(s) from your NAS to Arq<\/h3>\n<p>Pick &#8220;Add Folder to Backups&#8221; from Arq&#8217;s menu to add the folder(s) on the NAS that you want backed up.<\/p>\n<h3>Step 7: Test the backup<\/h3>\n<p>Pick &#8220;Back Up Now&#8221; from Arq&#8217;s menu. Arq will run the script to mount the NAS, and then back up the files you selected. If it didn&#8217;t mount, then Arq should report an error. If you need help finding the problem, please email us at <a href=\"mailto:support@arqbackup.com\">support@arqbackup.com<\/a>; we&#8217;re always happy to help!<\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arq can backup NAS shares. Here&#8217;s how to set that up on a Mac. (For Windows skip to the &#8220;NAS Backup on Windows&#8221; section.) Please note: This article only applies to Arq 5. Arq 6 will take care of mounting the NAS for you. NAS Backup on Mac Arq will back up whatever folders you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>NAS backup with Arq - Arq Backup Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NAS backup with Arq - Arq Backup Blog\" \/>\n<meta property=\"og:description\" content=\"Arq can backup NAS shares. Here&#8217;s how to set that up on a Mac. (For Windows skip to the &#8220;NAS Backup on Windows&#8221; section.) Please note: This article only applies to Arq 5. Arq 6 will take care of mounting the NAS for you. NAS Backup on Mac Arq will back up whatever folders you [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/\" \/>\n<meta property=\"og:site_name\" content=\"Arq Backup Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-09T16:45:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-09T19:05:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/eject_nas.png\" \/>\n<meta name=\"author\" content=\"Stefan Reitshamer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@arqbackup\" \/>\n<meta name=\"twitter:site\" content=\"@arqbackup\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stefan Reitshamer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/\"},\"author\":{\"name\":\"Stefan Reitshamer\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#\/schema\/person\/5ab08ca5321801d96a6dd155fcd650a2\"},\"headline\":\"NAS backup with Arq\",\"datePublished\":\"2018-02-09T16:45:19+00:00\",\"dateModified\":\"2020-06-09T19:05:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/\"},\"wordCount\":841,\"publisher\":{\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#organization\"},\"articleSection\":[\"backup\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/\",\"url\":\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/\",\"name\":\"NAS backup with Arq - Arq Backup Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#website\"},\"datePublished\":\"2018-02-09T16:45:19+00:00\",\"dateModified\":\"2020-06-09T19:05:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/nas-backup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.arqbackup.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"NAS backup with Arq\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#website\",\"url\":\"https:\/\/www.arqbackup.com\/blog\/\",\"name\":\"Arq Backup Blog\",\"description\":\"Trustworthy backup\",\"publisher\":{\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.arqbackup.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#organization\",\"name\":\"Haystack Software LLC\",\"url\":\"https:\/\/www.arqbackup.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2015\/07\/icon_256x256.png\",\"contentUrl\":\"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2015\/07\/icon_256x256.png\",\"width\":256,\"height\":256,\"caption\":\"Haystack Software LLC\"},\"image\":{\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/twitter.com\/arqbackup\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#\/schema\/person\/5ab08ca5321801d96a6dd155fcd650a2\",\"name\":\"Stefan Reitshamer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.arqbackup.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/46d2aebc6760035113223c21178854d5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/46d2aebc6760035113223c21178854d5?s=96&d=mm&r=g\",\"caption\":\"Stefan Reitshamer\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NAS backup with Arq - Arq Backup Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/","og_locale":"en_US","og_type":"article","og_title":"NAS backup with Arq - Arq Backup Blog","og_description":"Arq can backup NAS shares. Here&#8217;s how to set that up on a Mac. (For Windows skip to the &#8220;NAS Backup on Windows&#8221; section.) Please note: This article only applies to Arq 5. Arq 6 will take care of mounting the NAS for you. NAS Backup on Mac Arq will back up whatever folders you [&hellip;]","og_url":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/","og_site_name":"Arq Backup Blog","article_published_time":"2018-02-09T16:45:19+00:00","article_modified_time":"2020-06-09T19:05:02+00:00","og_image":[{"url":"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2018\/02\/eject_nas.png"}],"author":"Stefan Reitshamer","twitter_card":"summary_large_image","twitter_creator":"@arqbackup","twitter_site":"@arqbackup","twitter_misc":{"Written by":"Stefan Reitshamer","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/#article","isPartOf":{"@id":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/"},"author":{"name":"Stefan Reitshamer","@id":"https:\/\/www.arqbackup.com\/blog\/#\/schema\/person\/5ab08ca5321801d96a6dd155fcd650a2"},"headline":"NAS backup with Arq","datePublished":"2018-02-09T16:45:19+00:00","dateModified":"2020-06-09T19:05:02+00:00","mainEntityOfPage":{"@id":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/"},"wordCount":841,"publisher":{"@id":"https:\/\/www.arqbackup.com\/blog\/#organization"},"articleSection":["backup"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/","url":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/","name":"NAS backup with Arq - Arq Backup Blog","isPartOf":{"@id":"https:\/\/www.arqbackup.com\/blog\/#website"},"datePublished":"2018-02-09T16:45:19+00:00","dateModified":"2020-06-09T19:05:02+00:00","breadcrumb":{"@id":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.arqbackup.com\/blog\/nas-backup\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.arqbackup.com\/blog\/nas-backup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.arqbackup.com\/blog\/"},{"@type":"ListItem","position":2,"name":"NAS backup with Arq"}]},{"@type":"WebSite","@id":"https:\/\/www.arqbackup.com\/blog\/#website","url":"https:\/\/www.arqbackup.com\/blog\/","name":"Arq Backup Blog","description":"Trustworthy backup","publisher":{"@id":"https:\/\/www.arqbackup.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.arqbackup.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.arqbackup.com\/blog\/#organization","name":"Haystack Software LLC","url":"https:\/\/www.arqbackup.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.arqbackup.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2015\/07\/icon_256x256.png","contentUrl":"https:\/\/www.arqbackup.com\/blog\/wp-content\/uploads\/2015\/07\/icon_256x256.png","width":256,"height":256,"caption":"Haystack Software LLC"},"image":{"@id":"https:\/\/www.arqbackup.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/twitter.com\/arqbackup"]},{"@type":"Person","@id":"https:\/\/www.arqbackup.com\/blog\/#\/schema\/person\/5ab08ca5321801d96a6dd155fcd650a2","name":"Stefan Reitshamer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.arqbackup.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/46d2aebc6760035113223c21178854d5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/46d2aebc6760035113223c21178854d5?s=96&d=mm&r=g","caption":"Stefan Reitshamer"}}]}},"_links":{"self":[{"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/posts\/129"}],"collection":[{"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":31,"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":337,"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions\/337"}],"wp:attachment":[{"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.arqbackup.com\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}