Backup to an old NAS

    • OMV 4.x

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

    • Backup to an old NAS

      I have an old Buffalo NAS from 2008 that still works. My OMV NAS is replacing it because it can do more. I was thinking of using the old one as a backup source for the new one instead of an external usb drive. Is there a way to do this via a plugin or docker? I've read threads about how to backup to an external drive, but didn't know if the steps would be the same or if there was a better way.

      Thanks for any info...
    • I only backup to other servers.

      Just mount the OMV server somewhere on the old NAS and run rsync to backup the OMV NAS to the old NAS. I'm pretty certain that the old NAS supports mounting remote shares, running rsync and cron jobs.

      It may be dangerous to mount the old NAS on the OMV NAS and run the backup from the OMV side. The reason is that a dropped connection or other problems may cause rsync to spew files to the mount point, and fill the OMV NAS. Possibly crashing OMV.

      I use autofs to mount remote shares, not OMV, and I only run rsync in pull mode, never push.
      OMV 4, 7 x ODROID HC2, 1 x ODROID HC1, 5 x 12TB, 1 x 8TB, 1 x 2TB SSHD, 1 x 500GB SSD, GbE, WiFi mesh
    • In reading up on it, it seems that my old NAS doesn't support rsync and the only directions I found for replication would be between two Terastations. So I may go at this differently and put together another OMV server out of some old parts I have lying around and use it simply as a backup for my main OMV server. I'm sure I could do it that way with rsync. Or I could simply manually backup my files from one server to the other, but that would be a pain. I would rather it be done automatically and in real time if possible. Guess I could also use some kind of backup software to copy from one network drive to another, but i'd rather have the server handle it.
    • flyinjoe13 wrote:

      In reading up on it, it seems that my old NAS doesn't support rsync
      It doesn't need to (support rsync).

      You can "push" data from OMV, to your old NAS, using the Remote Mount plugin and rsync on OMV. All you need is a username + password with write access to the Buffalo box. (Most likely, your Windows username and password has write access.)

      Once the Buffalo network share is mounted in OMV, it's almost the same as having the share local. (Even when setting up the Rsync job, in OMV, you would use the "local" job setting.)

      The post was edited 1 time, last by crashtest: edit ().

    • I push with rsync all the time but I use rsyncd (server) not the remote mount plugin or autofs. So, i don't have to worry about mounts.
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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!
    • There has been threads where users report full rootfs and crashed OMV. I suspect that is from writing to a mount point in the root fs that is not mounted, for some reason.

      I prefer not to take the chance. And using rsyncd is a good way. However I have found that syncs are slower over SSH than over nfs.
      OMV 4, 7 x ODROID HC2, 1 x ODROID HC1, 5 x 12TB, 1 x 8TB, 1 x 2TB SSHD, 1 x 500GB SSD, GbE, WiFi mesh
    • Adoby wrote:

      There has been threads where users report full rootfs and crashed OMV. I suspect that is from writing to a mount point in the root fs that is not mounted, for some reason.
      Most of them are using remote mount or a usb drive that didn't mount for some reason (like the remote server is off). I would probably avoid pushing in those cases.

      Adoby wrote:

      However I have found that syncs are slower over SSH than over nfs.
      While rsync can run over ssh, using rsync to rsyncd without specifying ssh specific config isn't using ssh - just pure rsync protocol. So, my syncs usually saturate the gigabit connection.
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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!
    • flyinjoe13 wrote:

      If you think it's okay to push the data, I will do that instead.
      With a nod to @Adoby 's caution RE mount points on a boot drive, are you still interested in pushing to the Buffalo Box? I've pushed before, using two hosts on a local LAN without any negative effects, but I have to add a caveat on that. I didn't run that setup for long periods of time. The risk Adoby mentioned could be mitigated, depending on what you plan to use as a boot drive and with OS backup.

      I believe that having a backup on a fully independent platform (such as the Buffalo box) is better than an external drive. (But that's my opinion.)

      The post was edited 1 time, last by crashtest: edit ().

    • Well I got it working sort of. Instead of using rsync directly from the webUI, I used command line code in shellinabox since there was no way to enter the necessary commands directly from the webUI. Would love to figure out how to make it automated doing it the way I had to, but at least for now I have a way to do it even if it has to be done manually.

      If nothing else, at least I learned a little from all of this. I would like to more proficient as using CLI commands so any chance I get to learn something new is always a plus.

      The post was edited 1 time, last by flyinjoe13 ().

    • When it comes to the command line; I don't have the raw Linux experience the rest of these guys have, in this thread, so I sort of "back into" CLI implementations based on observations of the way things are done in the GUI, a bit of poking around in the confg files on the boot drive, and man page lookups.

      While Shellinabox works fine, you might want to take a look at a SSH client like PuTTY. (There's nothing wrong with Shellinabox - PuTTY is just an alternative that has a few extra capabilities.)

      flyinjoe13 wrote:

      since there was no way to enter the necessary commands directly from the webUI. Would love to figure out how to make it automated doing it the way I had to
      Actually, there's a way to do both.


      If you like the rsync command line you have now, you can automate it in two ways:
      1. Set the command line in Scheduled Tasks. Following are a few command lines I run from one server's GUI, solely for convenience.



      If automated in this way and your notification details are filled in, you can set automated E-mail reporting. Alternately, if you don't enable the Job, you can run it manually from time to time, using the run button.

      2. You could set a cron job, to run your command line but that's a bit on the labor intensive side, when the above (Scheduled Jobs) offers a few extras (like reports).
      _____________________________________________________

      As a precaution, don't forget to backup your boot drive. There's a plugin that supports that or, if you're booting from a USB drive, you might find the cloning process in this -> Guide to be useful.