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]
But if I start them on OMV 4.x I get the following exeption:
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':
Fehler #0:
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
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMVRpcServiceRsync->{closure}('/tmp/bgstatus3w...', '/tmp/bgoutputDf...')
#1 /usr/share/openmediavault/engined/rpc/rsync.inc(265): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: OMVRpcServiceRsync->execute(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)
#5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Rsync', 'execute', Array, Array, 1)
#6 {main}
Alles anzeigen
I would be very thankful if anyone can help me with that.