I'm doing some custom scripting, to be able to log start and end times of an rsync job. I'm wanting to utilize the Comment field of an rsync job as the value for the log file. How can I retrieve this information? Looking at the rsync mkconf I see this code:
Code
srcuri=$(omv_config_get "//services/rsync/jobs/job[uuid='${uuid}']/src")
srcuriarg="${srcuri}"
destsfref=$(omv_config_get "//services/rsync/jobs/job[uuid='${uuid}']/dest")
desturi=$(omv_get_sharedfolder_path "${destsfref}")
desturiarg=$(omv_escapeshellarg "${desturi}")
destmntdir=$(omv_get_sharedfolder_mount_dir "${destsfref}")
which makes me think there is something similar to retrieve the Comment value. I thought...hoped...this would work:
Am I close? Any suggestions?