RSync - Transfer from multiple drives to a single drive deleting files that are different, yet not deleting the files from another single drive.

  • So here is the setup:

    OMV6 with 4x 4TB HDD and 1x 16TB HDD.

    Shared paths looks like this NAS_Disk1/DISK1, NAS_Disk2/DISK2, NAS_Disk3/DISK3, NAS_Disk4/DISK4.

    DISK1, DISK2, DISK3 and DISK4 are the folders that are accessible on Windows when I map the Path \\OMV6\NAS_Disk*\ where * is 1,2,3,&4.

    The path for the 16TB HDD is like this: \\OMV6\16TB01\16TB_1 with 16TB_1 being a mapped folder that contains Folders :DISK1, DISK2, DISK3 and DISK4.


    I am trying to figure out how to rsync each of the individual 4TB Drives to the 16TB drive with 4 rsync tasks.

    The problem I encounter is that when one rsync task runs it deletes the other 3. Like if I run:

    &

    DISK2, DISK3, and DISK4 get deleted.


    I want rsync to delete any deleted changes from /NAS_Disk1/DISK1 on /16TB_1/DISK1 when it runs, I just don't want it to delete DISK2, DISK3, and DISK4 as well. And I want it to work that way for all 4 DISK files on all 4 Drives going to the 16TB drive.

    I feel like I set up the file structures in a way that it would be able to do this with ease, I just dont know the syntax I think.

    I tried to experiment with -delete--exclude with very poor luck. OMV6 just decided to not delete anything IO. Which I guess technically is a better alternative than getting all 3 disks deleted and having to run them again with the "Delete" option turned off.


    So I hope I explained what I am trying to do correctly and I hope there is a way to do it within OMV and rsync.


    Could someone give me a screenshot or exact text for the "Extra Options" line if that is the solution.

    Please dont hit me with something like " rsync abcdefg -delete /foo/bar/ foo/* /var/home/bar " nonsense that makes no sense to me.

    I dont need a blanket statement example in this setup, I need an exact example text.

    There are too few "REAL EXAMPLES" of how to use rsync, and too many "Blanket Examples" in my opinion so please just work with me.


    Please just give me the exact text and options selected as I would need them for this to work with one of the Drives/DISKs. I think I can just copy paste from there on the other 3 drive/DISK option setups.


    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

    The path for the 16TB HDD is like this: \\OMV6\16TB01\16TB_1 with 16TB_1 being a mapped folder that contains Folders :DISK1, DISK2, DISK3 and DISK4.

    Create shared folders for

    /OMV6/16TB01/16TB_1/DISK1

    /OMV6/16TB01/16TB_1/DISK2

    /OMV6/16TB01/16TB_1/DISK3

    /OMV6/16TB01/16TB_1/DISK4

    Then create rsync tasks like this for all four source and destination folders

    Source shared folder -> NAS_Disk1/DISK1

    Destination shared folder -> /OMV6/16TB01/16TB_1/DISK1

    Each task will be limited to its folder ignoring the others.

  • Oh yeah... simple solution. lol. Thanks. Cant believe I was making this way more difficult than it needed to be.

    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.

Jetzt mitmachen!

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