1. Properly call xmppc from notify-messages.xmpp
2. Move notification about successful backup after
drive unmounting,
}
run_rsnapshot($level);
-notify("Backup to disk $disk_id completed successfully\n");
# Размонтируем файловую систему, содержащую snapshot_root
$device =~ s/\d$//; # remove partition number
}
}
+notify("Backup to disk $disk_id completed successfully\n");
if (@baddevs) {
notify("Cannot unmount device(s) ".join(", ",@baddevs).".\n")
}
# configured in root's
# ~/.config/xmppc.conf
# should be renamed to just notify-messenger to use.
+
+# XMPP user to notifty
+ADMIN=vitus@wagner.pp.ru
read -r message
-xmppc -m message chat vitus@wagner.pp.ru "$message"
+xmppc -m message chat $ADMIN "$message"