On 09.08.19 07:08, Michael Huntley wrote: > It’s simply to check if the host is answering.
Yup. > I use ‘echo’ IIUC, you use a command that always returns true (coincidentally, the canonical choice for that command is `true`... ;-))? This means that (1) blackouts won't work as expected (note that pings are done even when no backup is due, to log whether this is a "always-on host"), and (2) that no matter whether the server is reachable or not, for any wakeup moment when a new backup is due, the host's backup tree will be copied over to the new "working tree" and immediately discarded again if the host couldn't be reached. (2) is merely an issue with the server load; (1) actually changes the "semantics" and could mean that backups are skipped because the host is considered always-on, but isn't. IMHO the only reason why one might want to replace the ping command is hosts that don't reply to pings for security reasons, or hosts where the hostname addressing is non-trivial (e.g., SSH via proxies specified in ~backuppc/.ssh/config). For both situations, and assuming SSH is used, sshping is an excellent replacement for ping; see https://github.com/spook/sshping and my very recent pull request https://github.com/spook/sshping/pull/16, which was made with BackupPC in mind... A pity that I found it only a couple of days ago myself... Cheers, Alex >> On Aug 8, 2019, at 10:05 PM, Kenneth Porter <sh...@sewingwitch.com> wrote: >> >> Why does BackupPC ping the host to be backed up before starting its backup. >> (I'm using rsyncd.) I'm thinking of replacing the ping command with "rsync >> $host::". Is there any downside to that? >> >> >> >> _______________________________________________ >> BackupPC-users mailing list >> BackupPC-users@lists.sourceforge.net >> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users >> Wiki: http://backuppc.wiki.sourceforge.net >> Project: http://backuppc.sourceforge.net/ >> > > > > _______________________________________________ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ >
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/