Hello mates:
Facing some problems:
Long story short: I have 3 rsync jobs running running at different times to backup my files but one of them don't send me mail notification:
Job is running correctly as i can see it in logs - message completed succersfully:
Tried to recreate the job, changed time of run but nothing work.
May the output being too big to be send? :-/
The 3rd on here under is the job causing trouble:
0 23 * * 7 root /var/lib/openmediavault/cron.d/rsync-5dc58cee-f190-4a50-876a-b99fd94619e7
30 23 * * 7 root /var/lib/openmediavault/cron.d/rsync-846b03aa-e190-4def-b158-5b08cf83ae68
0 16 * * * root /var/lib/openmediavault/cron.d/rsync-1b5563a9-e8b7-4f07-aa63-232528606030
All 3 jobs are configured the same in OMV (excluded the --exclude option in one).
again the third one "docker" is the on causing problem:
#!/bin/sh
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
. /usr/share/openmediavault/scripts/helper-functions
cleanup() {
omv_kill_children $$
rm -f /var/run/rsync-846b03aa-e190-4def-b158-5b08cf83ae68
exit
}
[ -e /var/run/rsync-846b03aa-e190-4def-b158-5b08cf83ae68 ] && exit 1
if ! omv_is_mounted "/srv/dev-disk-by-label-Volume1" ; then
omv_error "Source storage device not mounted at </srv/dev-disk-by-label-Volume1>!"
exit 1
fi
if ! omv_is_mounted "/srv/dev-disk-by-label-Seagate Backup Plus Drive" ; then
omv_error "Destination storage device not mounted at </srv/dev-disk-by-label-Seagate Backup Plus Drive>!"
exit 1
fi
trap cleanup 0 1 2 5 15
touch /var/run/rsync-846b03aa-e190-4def-b158-5b08cf83ae68
omv_log "Please wait, syncing </srv/dev-disk-by-label-Volume1/share/> to </srv/dev-disk-by-label-Seagate Backup Plus Drive/hdd_backup_medias> ...\n"
env RSYNC_PASSWORD="password" rsync --verbose --log-file="/var/log/rsync.log" --recursive --delete --exclude "Torrent" '/srv/dev-disk-by-label-Volume1/share/' '/srv/dev-disk-by-label-Seagate Backup Plus Drive/hdd_backup_medias' & wait $!
omv_log "\nThe synchronisation has completed successfully."
Alles anzeigen
#!/bin/sh
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
. /usr/share/openmediavault/scripts/helper-functions
cleanup() {
omv_kill_children $$
rm -f /var/run/rsync-5dc58cee-f190-4a50-876a-b99fd94619e7
exit
}
[ -e /var/run/rsync-5dc58cee-f190-4a50-876a-b99fd94619e7 ] && exit 1
if ! omv_is_mounted "/srv/dev-disk-by-label-Volume1" ; then
omv_error "Source storage device not mounted at </srv/dev-disk-by-label-Volume1>!"
exit 1
fi
if ! omv_is_mounted "/srv/dev-disk-by-label-Seagate Backup Plus Drive" ; then
omv_error "Destination storage device not mounted at </srv/dev-disk-by-label-Seagate Backup Plus Drive>!"
exit 1
fi
trap cleanup 0 1 2 5 15
touch /var/run/rsync-5dc58cee-f190-4a50-876a-b99fd94619e7
omv_log "Please wait, syncing </srv/dev-disk-by-label-Volume1/me/> to </srv/dev-disk-by-label-Seagate Backup Plus Drive/hdd_backup_files> ...\n"
rsync --verbose --log-file="/var/log/rsync.log" --recursive --delete '/srv/dev-disk-by-label-Volume1/me/' '/srv/dev-disk-by-label-Seagate Backup Plus Drive/hdd_backup_files' & wait $!
omv_log "\nThe synchronisation has completed successfully."
Alles anzeigen
#!/bin/sh
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
. /usr/share/openmediavault/scripts/helper-functions
cleanup() {
omv_kill_children $$
rm -f /var/run/rsync-1b5563a9-e8b7-4f07-aa63-232528606030
exit
}
[ -e /var/run/rsync-1b5563a9-e8b7-4f07-aa63-232528606030 ] && exit 1
if ! omv_is_mounted "/srv/dev-disk-by-label-Volume1" ; then
omv_error "Source storage device not mounted at </srv/dev-disk-by-label-Volume1>!"
exit 1
fi
if ! omv_is_mounted "/srv/dev-disk-by-label-Seagate Backup Plus Drive" ; then
omv_error "Destination storage device not mounted at </srv/dev-disk-by-label-Seagate Backup Plus Drive>!"
exit 1
fi
trap cleanup 0 1 2 5 15
touch /var/run/rsync-1b5563a9-e8b7-4f07-aa63-232528606030
omv_log "Please wait, syncing </srv/dev-disk-by-label-Volume1/docker/> to </srv/dev-disk-by-label-Seagate Backup Plus Drive/backup_docker> ...\n"
env RSYNC_PASSWORD="password" rsync --verbose --log-file="/var/log/rsync.log" --recursive --delete '/srv/dev-disk-by-label-Volume1/docker/' '/srv/dev-disk-by-label-Seagate Backup Plus Drive/backup_docker' & wait $!
omv_log "\nThe synchronisation has completed successfully."
Alles anzeigen
Second question: less important to me
Is there a way to edit the ouput of the title of the mail to something more human readable:
Acually appear as:
Cron <root@nas> /var/lib/openmediavault/cron.d/rsync-846b03aa-e190-4def-b158-5b08cf83ae68
Thanks for your help!