Hi Jean-Philippe,
Thanks for the advices,
I am currently writing a howto for BackupPC for my clients. I have another howto for Fail2ban but it is not up to date. Later, I will also have to do one for WBL.
As you say, it's impossible to connect a USB device to a virtual machine for a restore during an installation and I'm doing some tests for a complete restore without USB.
Testing is complete for a restore using SSH commands from the BackupPC host server. It is no longer necessary to transport the TAR file. Everything is functional but, the latest signal-events (post-upgrade and reboot) require access to the console of the remote server.
The reconfiguration of network cards requires also to be at the remote console ... I will look at manipulating /etc/udev/rules.d/70-persistent-net.rules to solve that. Maybe save the file before restauration and put it back after but, there are also files that have to be deleted also...
For now, I will use the script below.
#!/bin/sh
/usr/bin/ssh -l root $1 /sbin/e-smith/signal-event pre-backup
/usr/bin/ssh -l root $1 \
"config setprop sshd AutoBlock disabled; \
/sbin/e-smith/signal-event remoteaccess-update"
# If the command: "config setprop sshd AutoBlock disabled" is not working,
# this test will stop the current backup and disable them for this machine for 24 hours.
#
# Réf: https://www.mail-archive.com/backuppc-users@lists.sourceforge.net/msg10075.html
# Stop/delay backups
# BackupPC_serverMesg stop HOST REQ_USER BACKOFF
# HOST is the host to cancel, REQ_USER is the requesting user (just for
# log purposes) and BACKOFF is the backoff time in hours.
# This test will also write the status of AutoBlock in the log for this BackupPC machine.
# "Output from DumpPreUserCmd: AutoBlock=disabled"
# or
# "Output from DumpPreUserCmd: AutoBlock=enabled"
if ( ! (/usr/bin/ssh -l root $1 config show sshd | grep 'AutoBlock=disabled') )
then
/bin/mail -s "AutoBlock=disabled NOT FUNCTIONAL, stopping backups of the machine $1 for 24 hours" admin@domain.com < /dev/null
/usr/share/BackupPC/bin/BackupPC_serverMesg stop $1 backuppc 24
fi
Thank you again, I will look at the alternatives,
Michel-André