Re: [BackupPC-users] Why ping before backup?

2019-08-10 Thread Craig Barratt via BackupPC-users
For an rsyncd client, the "rsync $host::" suggestion seems like an
excellent idea.  Its exit status appears to be correct (0 on success), and
as you point out it is confirming the desired service is actually available.

Craig

On Sat, Aug 10, 2019 at 6:07 PM Kenneth Porter 
wrote:

> On 8/10/2019 9:50 AM, Alexander Kobel wrote:
> > IMHO the only reason why one might want to replace the ping command is
> > hosts that don't reply to pings for security reasons
>
> I'm thinking that "rsync $host::" would be a good substitute for an
> rsyncd backup because it preloads the executable on the client into its
> disk cache and verifies that the service, not the host, is up and
> accessible.
>
> I set up a new Win10 client the other day and forgot to open the
> firewall to ping when I opened it to rsync.exe. I mostly work from home
> so fixing that means I have to coordinate with the user to meet him when
> he's at the office and not busy using the host. It's just easier to
> change the ping setting. And, since Windows defaults to disallowing
> ping, perhaps this change is a good choice for all Windows rsyncd clients.
>
>
>
>
> ___
> 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/


Re: [BackupPC-users] Why ping before backup?

2019-08-10 Thread Kenneth Porter

On 8/10/2019 9:50 AM, Alexander Kobel wrote:

IMHO the only reason why one might want to replace the ping command is
hosts that don't reply to pings for security reasons


I'm thinking that "rsync $host::" would be a good substitute for an 
rsyncd backup because it preloads the executable on the client into its 
disk cache and verifies that the service, not the host, is up and 
accessible.


I set up a new Win10 client the other day and forgot to open the 
firewall to ping when I opened it to rsync.exe. I mostly work from home 
so fixing that means I have to coordinate with the user to meet him when 
he's at the office and not busy using the host. It's just easier to 
change the ping setting. And, since Windows defaults to disallowing 
ping, perhaps this change is a good choice for all Windows rsyncd clients.





___
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/


Re: [BackupPC-users] Why ping before backup?

2019-08-10 Thread Alexander Kobel
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  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/


Re: [BackupPC-users] Why ping before backup?

2019-08-08 Thread Michael Huntley
It’s simply to check if the host is answering.

I use ‘echo’

Cheers,

mph

> On Aug 8, 2019, at 10:05 PM, Kenneth Porter  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/


[BackupPC-users] Why ping before backup?

2019-08-08 Thread Kenneth Porter
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/