rsync - problem with folder split with include & exclude pattern

    • rsync - problem with folder split with include & exclude pattern

      Dear all,
      on my good old OMV 2.x I used rsync to split a folder from one big hdd to two smaller hdds using the include and exclude patterns.
      after setting up a new OMV 4 these patterns throw a exeption and rsync doesnt work anymore.

      Maybe someone can help me why the patterns dont work anymore?

      In the source there are folders with subfolder and files, and I would like to divide the source at a certain folder ...
      all folders from source starting with a number to folders starting with the Sj should go to target 1
      all folders from source starting with Sk to Z should got to target 2
      my problem was that the pattern should only divide at the "top or main" folders, not the subfolders or files... so a file from source in a folder "TTT" with the Name "abc.txt" should go completly to target 2...

      On OMV 2.x I used the following patterns:
      to Target 1" contenteditable="false">Quellcode: Rsync Action1 => to Target 1Quellcode bearbeiten


      [*]--include "/[0-S][a-j]*/**" --exclude "/[S-Z]*/**"
      [/list]



      Source Code

      1. --include "/S[k-z]*/**" --exclude "/[0-S]*/**"
      But if I start them on OMV 4.x I get the following exeption:

      Source Code

      1. Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export SHELL=/bin/sh; sudo --shell --non-interactive -- /var/lib/openmediavault/cron.d/rsync-da9a4cde-3b5b-4af6-9af7-ff48ce6782ac 2>&1' with exit code '1':
      2. Fehler #0:
      3. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export SHELL=/bin/sh; sudo --shell --non-interactive -- /var/lib/openmediavault/cron.d/rsync-da9a4cde-3b5b-4af6-9af7-ff48ce6782ac 2>&1' with exit code '1': in /usr/share/openmediavault/engined/rpc/rsync.inc:261
      4. Stack trace:
      5. #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMVRpcServiceRsync->{closure}('/tmp/bgstatus3w...', '/tmp/bgoutputDf...')
      6. #1 /usr/share/openmediavault/engined/rpc/rsync.inc(265): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      7. #2 [internal function]: OMVRpcServiceRsync->execute(Array, Array)
      8. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      9. #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)
      10. #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Rsync', 'execute', Array, Array, 1)
      11. #6 {main}
      Display All

      I would be very thankful if anyone can help me with that.
      Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors.
    • Users Online 2

      2 Guests