Backup with rsnapshot to NAS, how to do it?

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Backup with rsnapshot to NAS, how to do it?

      Hi to all,

      I installed the backup plugins in my OMV (The one running off the Raspberry Pi+RTC+USB hard drive), and would like to back up its installation on the other NAS.
      However, I don't see any option to connect to the other NAS and set it as a target for backup.

      How would I do that?

      It may be useful to know that the NAS uses a self-signed certificate.
    • Use the backup plugin to back to a data drive. Create a shared folder in the same location that the backup plugin backs up to. Then rsync that shared folder to a remote shared folder.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.9
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • If I get it correctly, this would require:
      1. Additional data drive as a target for the backup plugin
      2. Create a shared folder redirecting to the new data drive's folder (say, "bckp")
      3. rsync "bckp" to a remote shared folder…But the rsync plugin doesn't allow me to select a remote server, only local folders

      Would you mean automatically mounting the remote folder to a local one (for example, with SSHFS) and sending backups to the local folder, rsyncing to the remote one?
    • 1 - yes
      2 - No. The folder that the backup plugin backs up to is hard coded to the omvbackup folder on the data drive you select.
      3 - rsync can backup to a remote server if you have an rsync server running on the remote server. Otherwise, you would probably have the best luck with sshfs mounted in remoteshare.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.9
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • I still don't get it, sorry. Would you provide clear instructions for this configuration panel?
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c
      The origin directory doesn't provide me with the option of backing up / folder

      And as for the remote server destination, what should I enter?
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c

      I already tried to put Syno.local, but it didn't ask for any password or anything. The Add Shared Folder dialog doesn't provide the option of specifying a remote server:
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c

      Should I go to the rsync plugin first, set up the server from here, and use it for Rsnapshot?
      Images
      • Captura de pantalla 2016-04-09 a las 17.07.46.png

        74.77 kB, 604×434, viewed 995 times
      • Captura de pantalla 2016-04-09 a las 17.08.00.png

        67.49 kB, 584×416, viewed 962 times
      • Captura de pantalla 2016-04-09 a las 17.11.45.png

        43.63 kB, 515×320, viewed 664 times
    • Your post is very confusing.

      rsync is not the same as rsnapshot. rsnapshot can only sync from one shared folder to another shared folder. It cannot sync to a remote server (unless a shared folder is a locally mounted remote filesystem created with another plugin).

      Neither rsync nor rsnapshot can backup the root (/) folder.

      If you want to be able to sync the backup plugin's backup, create a shared folder on the same data drive that you selected in backup plugin. Use /omvbackup for the path of that shared folder. Then create an rsyncd module on the remote server. Create an rsync job on local server that syncs the newly create omvbackup shared folder to the remote server's rsyncd module.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.9
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • I'll try to make it clearer with the devices' names:

      ryecoaaron wrote:


      Neither rsync nor rsnapshot can backup the root (/) folder.
      That's annoying. How would I create a working clone of the root tree ready to restore if anything goes wrong? I thought there would be a Time Machine-style backup method available for OMV, especially considering the trouble I have getting CUPS to work properly (as per recommendations, I do have a RTC and USB hard drive running the installation on this RPi).

      If you want to be able to sync the backup plugin's backup, create a shared folder on the same data drive (meaning: USB drive hosting OMV) that you selected in backup plugin. Use /omvbackup for the path of that shared folder (so as to be able to tell it apart from the working shared folder). Then create an rsyncd module on the remote server (Synology provides a tutorial for that. I have rsync_bckp created on the Synology NAS, with its own r_user and password, and read-write permissions to this folder, and denied permissions from the other shared folders. I intend to use this r_user for all devices requiring rsync backups). Create an rsync job on local server (OMV) that syncs the newly created /omvbackup shared folder to the remote server's rsyncd module.

      You mean the backup is done in two steps?
      1- from the working local shared folder to another local shared folder with rsnapshot; 2- from the local (non-working) shared folder to the server using rsync?

      From my understanding, this would require twice the disk space just to host the copy of the working shared folder, this I don't currently have.

      As a test, I have done a manual rsync done according to Synology's tutorial that appears to work:
      Command was:

      Source Code

      1. # rsync -av /media/55160f00-ef96/Webdav/ rsync_user@Synology.local::rsync_bckp/omvbackup/Webdav/
      2. Password:

      But the matching task created in OMV's GUI does not:
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c

      Error is:
      @ERROR: auth failed on module rsync_bckp
      rsync error: error starting client-server protocol (code 5) at main.c(1534) [sender=3.0.9]
      av/> ...

      What does it mean?


      I thought the rsync protocol had the capability of doing daily copies to a remote server without requiring a second local copy, and the rsync plugin seems to have this capability. Is the two-step process recommended for safety reasons, so as not to mix files open for writing with what will be sent to the remote server?
      Images
      • Captura de pantalla 2016-04-09 a las 18.48.30.png

        48.7 kB, 582×262, viewed 695 times
    • We are having too many misunderstandings and this is making my head hurt...

      OMV has never allowed anything to be done with the OS drive. That will not change. If you don't have space for a second backup, I can't help. You will have to write a script to do it then.

      What I was proposing only copies the OS drive (not the data drives) to a data drive. This should not be large and I would hope you have space for it. You then create a shared folder in the same location that the backup plugin copies the OS files to. This does not duplicate data. It just allows you to access the OS backup. Then you sync that folder to another server.

      If you want to sync your data (not OS files) to another server, that data already has shared folders and you can sync it in a separate sync.

      So, the only thing that has an extra copy is the OS files which should be less than 2gb on most systems.

      I really hope that makes sense because I can't explain it any better.
      omv 4.1.9 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.9
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Indeed I mixed things up, that's why it got confusing. My bad.

      1- Use the Backup plugin to create a backup of data
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c

      2- set omvbackup/ as a shared folder
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c

      3- rsync this shared folder to the rsync server
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c

      But I still get the same error as I try to execute the task:

      Source Code

      1. @ERROR: auth failed on module rsync_bckp
      2. rsync error: error starting client-server protocol (code 5) at main.c(1534) [sender=3.0.9]
      3. ...

      What is the source of that issue? I can manually rsync, but not automatically?
      Images
      • Captura de pantalla 2016-04-11 a las 21.34.32.png

        30.78 kB, 379×136, viewed 686 times
      • Captura de pantalla 2016-04-11 a las 21.36.23.png

        44.23 kB, 678×192, viewed 586 times
      • Captura de pantalla 2016-04-11 a las 21.37.31.png

        44.96 kB, 580×245, viewed 573 times
    • Sure, this is the config:
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c
      forum.openmediavault.org/index…79ec5316a2554b9cecbacbe2c

      Indeed I got things mixed up. I had to use Backup plugin first, clone data folder from here, then create a rsync job with rsync plugin to sync to the other NAS. I forgot that, and that's why it got confusing, sorry for that.

      Why would this config fail compared to the manual command issued?

      With the manual command, authentication is asked directly on the command line, and under the large dots in the config window is the exact same password I am typing in the command line.
      Images
      • Captura de pantalla 2016-04-13 a las 15.15.38.png

        49.4 kB, 895×225, viewed 534 times
      • Captura de pantalla 2016-04-13 a las 15.15.28.png

        100.38 kB, 905×613, viewed 676 times

      The post was edited 2 times, last by Cubytus ().