Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision |
remote_mount_plugin_for_omv5 [2021/03/26 23:03] – [Switching to the Backup Server – A Short Check List] crashtest | remote_mount_plugin_for_omv5 [2022/07/28 17:24] – crashtest |
---|
<html><center><strong>Remote Mount For OMV5 - Addendum D</strong></center></html> | <html><center><span style="color:#000066;font-size:300%;">Remote Mount For OMV5</span></center></html> |
| |
{{ :omvextras_logo4.jpg?400 |}} | {{ :omvextras_logo4.jpg?400 |}} |
\\ | \\ |
\\ | \\ |
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]] | This document can be converted to a PDF file, in the user's language of choice (see the following), on Windows, Mac's and popular Linux desktop platforms. Simply select the printer icon on the upper right corner of this web page. When prompted at the client, select “print to PDF”, name and save the file. |
| \\ |
\\ | \\ |
| [[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 ===== |
---- | ---- |
\\ | \\ |
Now we have two shared folders. At this point, it's becoming obvious why using something to annotate “**remote**” ( **_R** ), in the shared folder name helps to prevent confusion. With a pair of shared folders, one **local** and the other **remote**, the two can be rsycn'ed. | Now we have two shared folders. At this point, it's becoming obvious why using something to annotate “**remote**” ( **_R** ), in the shared folder name helps to prevent confusion. With a pair of shared folders, one **local** and the other **remote**, the two can be rsync'ed. |
\\ | \\ |
| |
| |
| |
===== Setting up an Rsycn Job ===== | ===== Setting up an Rsync Job ===== |
\\ | \\ |
| |
First note that the job type is **Local**. (When using Remote Mount, an Rsycn server is **not** required.) | First note that the job type is **Local**. (When using Remote Mount, an Rsync server is **not** required.) |
\\ | \\ |
\\ | \\ |
\\ | \\ |
\\ | \\ |
It's necessary to change ownership (**chown**) to the local root account and the local users group, and to modify access permissions (**chmod**). In this case **--chmod=0775** and **--chown=root:users** was used. This is the equivalent of: | It's necessary to change ownership (**chown**) to the local root account and the local users group, and to modify access permissions (**chmod**). In this case ''−−chmod=0775'' and ''−−chown=root:users'' was used. This is the equivalent of: |
\\ | \\ |
\\ | \\ |
\\ | \\ |
| |
* After the first replication event is complete, in subsequent jobs, rsync will only transfer new and changed files. This makes rsycn very efficient and fast. | * After the first replication event is complete, in subsequent jobs, rsync will only transfer new and changed files. This makes rsync very efficient and fast. |
* In the Rsync Job's options, with the “**Keep Partially Transferred Files**” switch **ON**, even if a job is interrupted with a reboot or for some another reason, transferred files are not lost. | * In the Rsync Job's options, with the “**Keep Partially Transferred Files**” switch **ON**, even if a job is interrupted with a reboot or for some another reason, transferred files are not lost. |
* Turning the **Delete** switch **OFF**, may provide some degree of protection against accidentally deleted files. However, it will be necessary to manually turn the Delete switch on, from time to time, to purge unwanted files. | * Turning the **Delete** switch **OFF**, may provide some degree of protection against accidentally deleted files. However, it will be necessary to manually turn the Delete switch on, from time to time, to purge unwanted files. |
\\ | \\ |
* Log into OMV's GUI, on the **Backup Server**. | * Log into OMV's GUI, on the **Backup Server**. |
* Under **Services**, **Rsycn**, in the **Jobs** tab, select the top Rsync job, and click the **Edit** button. At the top of the dialog box, change the **Enabled** switch from ON (green) to **OFF** (gray). Proceed down the list, turning **ALL rsync jobs OFF**. | * Under **Services**, **Rsync**, in the **Jobs** tab, select the top Rsync job, and click the **Edit** button. At the top of the dialog box, change the **Enabled** switch from ON (green) to **OFF** (gray). Proceed down the list, turning **ALL rsync jobs OFF**. |
* 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. |
**chown** is used to reset ownership and group access on incoming foreign files.\\ | **chown** is used to reset ownership and group access on incoming foreign files.\\ |
In the following, the left hand side of the colon is the “Owner” (**root**). The right hand side of the colon is the “Group” (in this case **users**).\\ | In the following, the left hand side of the colon is the “Owner” (**root**). The right hand side of the colon is the “Group” (in this case **users**).\\ |
''--chown=root:users''\\ | ''−−chown=root:users''\\ |
\\ | \\ |
**Others**, not part of the command, is any username that is NOT specifically called out as the “owner” or any member of the group “users”.\\ | **Others**, not part of the command, is any username that is NOT specifically called out as the “owner” or any member of the group “users”.\\ |
**chmod** is used to define the permissions applied to the Owner, the Group, and others.\\ | **chmod** is used to define the permissions applied to the Owner, the Group, and others.\\ |
\\ | \\ |
''--chmod=0775'' | ''−−chmod=0775'' |
| |
On the Primary (remote) server, [[https://winscp.net/eng/download.php|WinSCP]] can be used to determine the permissions and settings needed for incoming files, as shown below. (Details for setting up WinSCP are available → [[https://openmediavault.readthedocs.io/en/5.x/new_user_guide/newuserguide.html#winscp|here]].) The “Octal” 0775 are permissions that directly correspond to: | On the Primary (remote) server, [[https://winscp.net/eng/download.php|WinSCP]] can be used to determine the permissions and settings needed for incoming files, as shown below. (Details for setting up WinSCP are available → [[https://openmediavault.readthedocs.io/en/5.x/new_user_guide/newuserguide.html#winscp|here]].) The “Octal” 0775 are permissions that directly correspond to: |