Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
remote_mount_plugin_for_omv5 [2021/02/12 22:26] – crashtest | remote_mount_plugin_for_omv5 [2021/04/21 11:37] – [Remote Mount For Openmediavault 5] crashtest |
---|
If preferred, this document is available in PDF form at this location → [[https://github.com/OpenMediaVault-Plugin-Developers/docs/blob/master/Adden-D-Remote_Mount_Plugin.pdf|Adden-D Remote Mount Plugin]] | If preferred, this document is available in PDF form at this location → [[https://github.com/OpenMediaVault-Plugin-Developers/docs/blob/master/Adden-D-Remote_Mount_Plugin.pdf|Adden-D Remote Mount Plugin]] |
\\ | \\ |
{{ :underconstruction.jpg?400 |}} | \\ |
| [[https://translate.google.com/|Google Translate]] kann Wiki-Dokumente in Ihre Sprache übersetzen. Fügen Sie die Wiki-URL in das linke Fenster ein und öffnen Sie den übersetzten Link rechts.\\ |
| [[https://translate.google.com/|Google Translate]] puede traducir documentos wiki a su idioma. Pegue la URL de la wiki en la ventana izquierda y abra el enlace traducido a la derecha.\\ |
| [[https://translate.google.com/|Google Translate]] peut traduire des documents wiki dans votre langue. Collez l'url du wiki dans la fenêtre de gauche et ouvrez le lien traduit sur la droite.\\ |
| [[https://translate.google.com/|Google]]翻訳はwikiドキュメントをあなたの言語に翻訳することができます。 左側のウィンドウにwikiのURLを貼り付け、右側の翻訳されたリンクを開きます。\\ |
\\ | \\ |
===== The Remote Mount Plugin ===== | ===== The Remote Mount Plugin ===== |
===== Uses for Remote Mount ===== | ===== Uses for Remote Mount ===== |
| |
Remote Mount is useful for mounting, accessing and replicating network shares, located on another LAN server or a LAN client. This capability works very well with Rsync, for backing up network shares over a LAN connection. | * Remote Mount is useful for mounting, accessing and replicating network shares, located on another LAN server or a LAN client. This capability works very well with Rsync, for backing up network shares over a LAN connection. |
\\ | * Along with setting up Remote Mount, this document will provide a practical example where Remote Mount and Rsync are used for replicating a network share. |
\\ | * **Remote Mount makes the creation of a full Backup Server relatively easy**, with no command line operations required. Guidance for creating a full Backup Server is provided in this document. |
Along with setting up Remote Mount, this document will provide a practical example where Remote Mount and Rsync are used for replicating a network share. | |
\\ | |
\\ | |
===== Install the Remote Mount Plugin ===== | ===== Install the Remote Mount Plugin ===== |
| |
---- | ---- |
| |
On the Primary server; under **Access Rights Management**, **Shared Folders**; click on the **Music** shared folder and the **ACL** button. | **On the Primary server**:\\ |
| \\ |
| Under **Access Rights Management**, **Shared Folders**; click on the **Music** shared folder and the **ACL** button. |
\\ | \\ |
\\ | \\ |
\\ | \\ |
\\ | \\ |
For users who are interested only in mounting a remote share, this concludes the installation, configuration, of the Remote Mount plugin. | For users who are interested only in mounting a remote share, this concludes the installation and configuration of the Remote Mount plugin. |
\\ | \\ |
{{ :divider2.png?800 |}} | {{ :divider2.png?800 |}} |
* If permissions are used, duplicate all usernames and passwords that are resident on the Primary Server, on the Backup Server. Usernames and passwords must be an exact match. | * If permissions are used, duplicate all usernames and passwords that are resident on the Primary Server, on the Backup Server. Usernames and passwords must be an exact match. |
* Check the Primary Server's permissions for each share, on both the shared folder and on the SMB share, and duplicate them on the Backup Server. Permissions should match throughout. | * Check the Primary Server's permissions for each share, on both the shared folder and on the SMB share, and duplicate them on the Backup Server. Permissions should match throughout. |
* The permissions applied in the rsync job **Extra options**, to adjust incoming foreign files permissions, should match permissions set on the local shared folder. Understanding the “**Octal**” required for **chmod** or using [[https://winscp.net/eng/download.php|WinSCP]] to determine the Octal to use (as demo'ed in [[https://wiki.omv-extras.org/doku.php?id=remote_mount_plugin_for_omv5#further_notes_on_permission_commands|Further Notes on Permission Commands]] ), is important for transparent user access to backup shares, when the Backup server is brought on-line. | * The permissions applied in the rsync job **Extra options**, to adjust incoming foreign files permissions, should match permissions set on the local shared folder. Understanding the “**Octal**” required for **chmod** or using [[https://winscp.net/eng/download.php|WinSCP]] to determine the Octal to use (demo'ed in [[https://wiki.omv-extras.org/doku.php?id=remote_mount_plugin_for_omv5#further_notes_on_permission_commands|Further Notes on Permission Commands]] ), is important for transparent user access to backup shares, when the Backup server is brought on-line. |
* Before the Backup Server is activated, **all rsync jobs** on the Backup Server should be **disabled**. Share replication should not be re-enabled until the Primary Server is repaired and newly created user files are transferred from the Backup Server, to the Primary Server. | * Before the Backup Server is activated, **all rsync jobs** on the Backup Server should be **disabled**. Share replication should not be re-enabled until the Primary Server is repaired and newly created user files are transferred from the Backup Server, to the Primary Server. |
* Changes involving shares, permissions, etc., made on the Primary Server should be duplicated on the Backup Server. | * Changes involving shares, permissions, etc., made on the Primary Server should be duplicated on the Backup Server. |
| |
==== Use Cases ==== | ==== Use Cases ==== |
\\ | |
\\ | |
=== Home Users: === | === Home Users: === |
\\ | |
| |
For home use, where files are largely static, home admin's should consider a replication interval of once a week or every two weeks. The reasoning is, a reasonable time interval is needed to discover a data disaster on the Primary server and turn off share replication, before the problem is replicated to the Backup Server. | For home use, where files are largely static, home admin's should consider a replication interval of once a week or every two weeks. The reasoning is, a reasonable time interval is needed to discover a data disaster on the Primary server and turn off share replication, before the problem is replicated to the Backup Server. |
\\ | \\ |
\\ | \\ |
While not for beginners, setting up automated and self purging snapshots is within the capability of a Computer or Linux enthusiast. This document [[https://github.com/OpenMediaVault-Plugin-Developers/docs/blob/master/HOWTO-Automated%20ZFS%20snapshots.pdf|HOW-TO: Setup automated, Self Rotating and Purging ZFS snapshots]] details the processes for setting up automated snapshots using zfs-auto-snapshot . | While not for beginners, setting up automated and self purging snapshots is within the capability of a Computer or Linux enthusiast. [[https://github.com/OpenMediaVault-Plugin-Developers/docs/blob/master/HOWTO-Automated%20ZFS%20snapshots.pdf|HOW-TO: Setup automated, Self Rotating and Purging ZFS snapshots]] details the processes for setting up automated snapshots using zfs-auto-snapshot . |
| |
---- | ---- |
* Under **Services**, **SMB/CIF**, in the **Settings** Tab under **General Settings**, set **Enable** to **ON** (green). | * Under **Services**, **SMB/CIF**, in the **Settings** Tab under **General Settings**, set **Enable** to **ON** (green). |
* Notify users to use the Backup Server until further notice. | * Notify users to use the Backup Server until further notice. |
| * On the **Primary Server**, under **Services**, **SMB/CIF**, **Settings** Tab, **General Settings**, **disable SMB** (off - gray) to avoid user confusion. |
| |
\\ | \\ |
===== The Bottom Line ===== | ===== The Bottom Line ===== |
\\ | \\ |
The Remote Mount Plugin and Openmediavault's standard features make it relatively easy and inexpensive to setup 100% backup of a Primary Server's entire data store, with a second hard drive of adequate size. The platform could be a low cost SBC, an I386 or an amd64 PC. | The Remote Mount Plugin and Openmediavault's standard features make it relatively easy and inexpensive to setup 100% backup of a Primary Server's entire data store, with a second hard drive or an array of adequate size. The platform could be a low cost SBC, an I386 or an amd64 PC. |
{{ :divider2.png?800 |}} | {{ :divider2.png?800 |}} |
| |
| |
(OMV's standard Linux permissions)\\ | (OMV's standard Linux permissions)\\ |
**Owner: root - Read/Write/Execute**\\ | **Owner: root - Read/Write/eXecute**\\ |
**Group: users - Read/Write/Execute**\\ | **Group: users - Read/Write/eXecute**\\ |
**Others: Read/Execute**\\ | **Others: Read/eXecute**\\ |
\\ | \\ |
{{ ::remotemount17.jpg?600 |}} | {{ ::remotemount17.jpg?600 |}} |