Hello all,
After spending many hours with the good people of the forum, setting up nextcloud on my OMV5 machine, the first thing I want to do is a local mirror of the data drive so that I can just swap drives if disaster strikes. I have enabled the rsync job in System>Scheduled jobs, like so:
rsync -av /srv/dev-disk-by-uuid-234ddefe-df8d-4d5e-91f9-8b0375a0d13f/ /srv/dev-disk-by-uuid-10ea8d36-b524-4e24-b461-6f04f4cd4581/
I have purposefully omitted the --delete switch on the first run as advised in the user manual and for obvious reasons. Anyway, it looks like the job is a success, apart from an error at the end:
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 --user='root' -- /var/lib/openmediavault/cron.d/userdefined-6689ea98-43a1-41a0-83e8-d572aef63f4a 2>&1' with exit code '23': sending incremental file list
rsync: rename "/srv/dev-disk-by-uuid-10ea8d36-b524-4e24-b461-6f04f4cd4581/.aquota.group.WjsDMy" -> "aquota.group": Operation not permitted (1)
rsync: rename "/srv/dev-disk-by-uuid-10ea8d36-b524-4e24-b461-6f04f4cd4581/.aquota.user.hLobDI" -> "aquota.user": Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3] in /usr/share/openmediavault/engined/rpc/cron.inc:185
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): Engined\Rpc\Cron->Engined\Rpc\{closure}('/tmp/bgstatusyK...', '/tmp/bgoutputz5...')
#1 /usr/share/openmediavault/engined/rpc/cron.inc(189): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
Now, I am guessing that this means that there is a permissions problem in overwriting aquota.group and aquota.user on the destination drive, and I assume that I will need to overwrite these files for the mirrored data to be accurate.
Can I just delete these files (on the source drive) through the CL and then run the job or will it run into this problem everytime it runs?
Thanks,
Nick.
EDIT: Or can i just exclude them from the copy, will it make any difference as I'm not sure what those directories (aquota.group and aquota.user) are for?
Another EDIT: OK, so excluding the files allows the job to run without errors. If this isn''t what i should be doing, please tell me. I will mark the thread as resolved.