{"id":235,"date":"2021-07-23T12:26:09","date_gmt":"2021-07-23T12:26:09","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-run-backups-on-locally-mounted-remote-filesystems\/"},"modified":"2021-07-23T12:26:09","modified_gmt":"2021-07-23T12:26:09","slug":"how-to-run-backups-on-locally-mounted-remote-filesystems","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-run-backups-on-locally-mounted-remote-filesystems\/","title":{"rendered":"How to Run Backups on Locally-Mounted Remote Filesystems"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This document describes how to run backups on locally-mounted remote filesystems.<\/p>\n<p>To mount or unmount a partition, you must place the partition in the <code>\/etc\/fstab<\/code> file. This file contains a list of mountable file systems and their configuration options. The backup utility only mounts or unmounts partitions that appear in the <code>\/etc\/fstab<\/code> file.<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>We <strong>strongly<\/strong> recommend that you do not perform backups to remote filesystems (for example, NFS, CIFS, smbfs, or other types of network drive systems). While you can store a backup directly to a remote filesystem, cPanel &#038; WHM does <strong>not<\/strong> support this configuration.<\/li>\n<li>We <strong>strongly<\/strong> recommend that you work with a qualified system administrator to manage this custom backup path to avoid potential risks.<\/li>\n<li>We are <strong>not<\/strong> responsible for any data loss that an attempt to perform the steps in this document causes.<\/li>\n<\/ul><\/div>\n<\/div>\n<h2 id=\"configure-the-filesystem\">Configure the filesystem<\/h2>\n<p>If you use a mounted filesystem to store backups, we <strong>strongly<\/strong> recommend that you mount the system with the <code>noexec<\/code> option. To do this, open the <code>\/etc\/fstab<\/code> file with a text editor and edit its entry to resemble the following example:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-GO\" data-lang=\"GO\"><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">dev<\/span><span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">sda5<\/span> <span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">backup<\/span> <span style=\"color:#a6e22e\">ext3<\/span> <span style=\"color:#a6e22e\">defaults<\/span>,<span style=\"color:#a6e22e\">noexec<\/span> <span style=\"color:#ae81ff\">0<\/span> <span style=\"color:#ae81ff\">0<\/span><\/code><\/pre>\n<\/div>\n<p>The example above describes the following configuration options:<\/p>\n<ul>\n<li><code>\/dev\/sda5<\/code> \u2014 The device.<\/li>\n<li><code>\/backup<\/code> \u2014 The default mount point.<\/li>\n<li><code>ext3<\/code> \u2014 The file system type.<\/li>\n<li><code>defaults,noexec<\/code> \u2014 The mount options.<\/li>\n<li><code>0<\/code> \u2014 The dump options.<\/li>\n<li><code>0<\/code> \u2014 The <code>fsck<\/code> order.<\/li>\n<\/ul>\n<h2 id=\"remount-a-backup-disk\">Remount a backup disk<\/h2>\n<p>To remount a backup disk while the system reboots, run the following command:<\/p>\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-GO\" data-lang=\"GO\"><span style=\"color:#a6e22e\">mount<\/span> <span style=\"color:#f92672\">-<\/span><span style=\"color:#a6e22e\">o<\/span> <span style=\"color:#a6e22e\">remount<\/span>,<span style=\"color:#a6e22e\">noexec<\/span> <span style=\"color:#f92672\">\/<\/span><span style=\"color:#a6e22e\">backup<\/span><\/code><\/pre>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document describes how to run backups on locally-mounted remote filesystems. To mount or unmount a partition, you must place the partition in the \/etc\/fstab file. This file contains a list of mountable file systems and their configuration options. The backup utility only mounts or unmounts partitions that appear in the \/etc\/fstab file. Warning: &hellip;<\/p>\n","protected":false},"author":1,"featured_media":236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/235"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/236"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}