SOLVED: How to Backup a Windows non-system Drive to OMV

  • I have windows installed on my C drive like most people, and I have a second hard drive ( Drive D ) that I keep all my Blender and Animation files on. I would like to backup the D drive to an open media vault shared folder. My preference would be to use RSync pull on the OMV side if possible. So how do I set up the rsync server on the windows side?


    OR is there another method to do the same task. Ideally it would backup every day.

    Or if continuous backup doesnt affect my pc performance, that would be fine too.

    I should note that the D drive is SSD and the OMV server is a RAID6 with 10 SSDs, so I dont think speed will be a problem, but you never know.


    Thanks in advance.

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

    • Offizieller Beitrag

    I have never done this, but in the forum they usually recommend urbackup to make this type of backup.

    Personally I prefer the approach of having all the information hosted on the server and making backups from there. If there is a need to have work files locally, I prefer to synchronize them. For that you can use Nextcloud or Syncthing, for example.

  • I looked up the techno dad life video on urbackup. He finds it under the plugins tab. I have omv extras installed, but it isnt showing up as an option. Any advice on why this may not be there? Or do you know of a good tutorial on how to use urbackup with omv?

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

  • Windows "file history"is another option.

    As I understand it, the windows backup is only for system disks with windows on them. My use case is for a secondary drive that just has files on it, not windows itself.

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

  • I used to use syncbackfree on my system when it was windows and still use it on my wife's computer to sync to an SMB share on my OMV server. I have the share mapped to a drive letter on her machine and syncback basically runs like a nice gui rsync push to the share. Another near identical option is FreeFileSync which also happens to be open source.


    Another option that will allow you to do an rsync pull from your server is to install WSL and an rsync server in WSL with all of the proper drives mounted (ro). A little more complex but if you are familiar with linux it shouldn't be to hard to find the guides and get it up and running.


    If you aren't familiar with WSL, it's Windows Subsystem for Linux and runs a kind of cross between a VM and a Docker under windows. It's technically a VM but not a full fledged managed VM like you would run under KVM. Inside you can install several distros, seeing that you already use OMV, I would install Debian. Here is the link with instructions.


    InstallingDebianOn/Microsoft/Windows/SubsystemForLinux - Debian Wiki

    Main-Srv: Xeon E5-2650 V4 32gb, OMV7 - 6.5.11-7-pve, Compose 7.0.3, Backup 7.0, Kernel 7.0.3, KVM 7.0.1, Resetperms 7.0, Sharerootfs 7.0-1, Wetty 7.0-1

    Mini-Srv: Intel N95 8gb, OMV6 - 6.2.16-20-pve, Compose 6.11.3, Kernel 6.4.9, MergFS 6.3.8, Resetperms 6.0.3, Sharerootfs 6.0.3-1, Wetty 6.0.7-1

    Inlaw's Srv: AMD A10-7800 16gb, OMV6 - 6.2.16-20-pve, Compose 6.11.3, Kernel 6.4.9, MergFS 6.3.8, Resetperms 6.0.3, Sharerootfs 6.0.3-1, Wetty 6.0.7-1

    • Offizieller Beitrag

    I looked up the techno dad life video on urbackup. He finds it under the plugins tab. I have omv extras installed, but it isnt showing up as an option. Any advice on why this may not be there? Or do you know of a good tutorial on how to use urbackup with omv?

    You can install UrBackup as docker.

  • Thanks for the advices. Thanks to all that responded.


    SOLVED:

    What I figured out is that I can just use a batch file. It seems to be the cleanest setup for my particular use case.


    For anyone that is interested in using a batch file to backup to OMV, I will explain the setup below.


    STEP 1. Create the batch file. (Use notepad or Notepad++ and then change the .txt to .bat as needed and vice versa.)

    (It can be located pretty much anywhere, but I would put it in a file location that you can remember.)

    - I used the ROBOCOPY feature since it has the /PURGE option to keep my backup drive matching my source drive.

    - - Research a little bit about batch file creation and the ROBOCOPY feature HERE: ROBOCOPY LINK

    - You could probably use the XCOPY feature as and alternative, but it did not fit my use case.

    - - Research its functionality HERE: XCOPY LINK


    My Batch File named SYNC.bat looks like this:

    Code
    @echo off
    ROBOCOPY "D:" \\10.20.1.100\share\ /S /E /MT:12 /DCOPY:DAT /COPY:DAT /PURGE /R:5 /W:5

    To explain what is going on, basically it is just copying from SOURCE drive D: (which is a local disk in my pc) to DESTINATION drive X: which is my OMV drive.

    Since the task scheduler doesn't play nice with the syntax " X: " or " X:\ " I had to put in the IP address of my OMV Server.

    NOTE: Add the function PAUSE to the last line of the batch file and open it manually to debug the batch file if needed. BUT remember to remove the PAUSE function before using it in the Task Scheduler or it will run continuously forever.


    FOR DEBUGGING ONLY:

    Code
    @echo off
    ROBOCOPY "D:" \\10.20.1.100\share\ /S /E /MT:12 /DCOPY:DAT /COPY:DAT /PURGE /R:5 /W:5
    PAUSE


    /S - Copies subdirectories. This option automatically excludes empty directories.

    /E - Copies subdirectories. This option automatically includes empty directories.

    /MT:12 - Use 12 Threads of my PC.

    /DCOPY:DAT - Specifies what to copy in directories. The valid values for this option are:

    D - Data

    A - Attributes

    T - Time stamps

    /COPY:DAT - Specifies which file properties to copy. The valid values for this option are:

    D - Data

    A - Attributes

    T - Time stamps

    /PURGE - Deletes destination files and directories that no longer exist in the source.

    /R:5 - Specifies the number of retries on failed copies.

    /W:5 - Specifies the wait time between retries, in seconds.




    STEP 2. Add it to the Task Scheduler


    Type in: "Task Scheduler" in the Windows search box. Open it.

    On the far right side, Or under the Action TAB click on "Create Basic Task"


    Type in a name for your Task and give it a description if you want to.

    Click Next>


    Set the Trigger Frequency Daily.

    Click Next>


    Set a Start Day and Time, Set Recurring Time to 1 Day.


    Set the Action to "Start a Program"

    Click Next>


    Browse to the batch file location and select it.

    Click Next>

    Click Finish. (Open Properties if you need to make more edits.)



    Its is as easy as that.

    It does run a bit slow if you use certain functions such as /Z OR /B in your batch file due to logging. But that is the jist of it.

    Research all the functions using the links above to see which options work best for your use case.

    As always, your mileage may vary.


    Good Luck!

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

    • Offizieller Beitrag

    It would make sense to use urbackup or a similar program if what you are looking for are versioned backups, etc., but if what you are looking for is a simple synchronization the approach is different.

    I did something similar to what you just explained a while ago using robocopy. In the end I came to the conclusion that it is easier to use a synchronization program, as I said in post #2, it is what I do. I use Nextcloud to sync folders. The result is the same.

    If you don't use Nextcloud and prefer a simpler application, I would use Syncthing, it can also be used on Windows.

  • It would make sense to use urbackup or a similar program if what you are looking for are versioned backups, etc., but if what you are looking for is a simple synchronization the approach is different.

    I did something similar to what you just explained a while ago using robocopy. In the end I came to the conclusion that it is easier to use a synchronization program, as I said in post #2, it is what I do. I use Nextcloud to sync folders. The result is the same.

    If you don't use Nextcloud and prefer a simpler application, I would use Syncthing, it can also be used on Windows.

    But why did you decide to add more software to windows? what was the benefit over robocopy?

    Chenbro NR12000 32GB Ram - Xeon E2-1230 V2 @ 3.3GHz - OMV6

    Supermicro X9DRI-LN4F+ 128GB Ram - 2x Xeon E5-2670 V2 @ 2.5GHz - OMV6

    2x Wiwynn Lyra SV315 10SFF 32GB Ram - 2x Xeon E5-2630 v2 @ 2.60GHz - OMV6

    2x Lenovo EMC PX12-400R 32GB Ram - Core i3-3220 @ 3.3GHz - OMV6

  • MultiUser

    Hat das Label gelöst hinzugefügt.
  • MultiUser

    Hat den Titel des Themas von „How to Backup a Windows non-system Drive to OMV“ zu „SOLVED: How to Backup a Windows non-system Drive to OMV“ geändert.
    • Offizieller Beitrag

    But why did you decide to add more software to windows? what was the benefit over robocopy?

    Well, mainly because I already have Nextcloud installed on the server, so it is very easy for me to install the Nextcloud application for Windows. Furthermore, synchronization through Nextcloud or Syncthing is instantaneous, while with the robocopy script you must run it on a scheduled basis from time to time. It offers other advantages such as visually modifying folders, synchronizing only links to files, etc.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!