# Feature-Request: Start backup only if some host is available

**URL:** <https://forum.duplicati.com/t/feature-request-start-backup-only-if-some-host-is-available/11169>\
**Category:** Features\
**Created:** [November 19, 2020, 12:10pm UTC](https://forum.duplicati.com/t/feature-request-start-backup-only-if-some-host-is-available/11169 "2020-11-19T12:10:41Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [August 24, 2021, 2:24pm UTC](https://forum.duplicati.com/t/feature-request-start-backup-only-if-some-host-is-available/11169/6 "2021-08-24T14:24:54Z")

</div>

> [@drwtsn32](#):
>
> Unfortunately ping on Windows doesn’t seem to return a testable error condition.

It does, but not the way I’d prefer. It’s thrown off by things like “Destination host unreachable” responses.

[Destination host unreachable, but the errorlevel is 0 (from a win7) [closed]](https://serverfault.com/questions/372673/destination-host-unreachable-but-the-errorlevel-is-0-from-a-win7) links to [Ping Errorlevel](https://www.tek-tips.com/viewthread.cfm?qid=304609) script.

Or if you trust my shaky Command Prompt skills, a one-liner demo similar to the original might be to do:

> ping -n 1 hostname | find “Reply” \> NUL || exit 1

> [@max](#):
>
> I would like the backup to start automatically when I’m at home

I think the “Destination host unreachable” oddity is relevant to hosts on local network. Is that your case?  
If so, maybe look-for-an-actual-Reply fix will help. If not, then I’m not sure exactly what the situation is…

> [@max](#):
>
> Also the option that a backup is made when a USB stick with a certain name is connected would be useful. alternatively, a certain file could be stored on the usb stick to check whether the correct stick is connected.

I don’t think there’s normally a guarantee of the Windows drive letter the USB stick will receive, but see  
[Windows Drive Letters](https://www.duplicati.com/articles/Windows-Drive-Letters/) which describes the [Local folder or drive](https://duplicati.readthedocs.io/en/latest/05-storage-providers/#local-folder-or-drive) options `alternate-target-paths` to handle the potentially changing drive letter, and `alternate-destination-marker` for your “certain file”.

It’s not an automatic start, has no friendly GUI, but is a start. Look for related forum topics for more info.

> [@max](#):
>
> it would be great if duplicati becomes more user-friendly.

This is all limited by lack of new developers to add things… Volunteers are also encouraged in all areas.

---

_[View the full topic](https://forum.duplicati.com/t/feature-request-start-backup-only-if-some-host-is-available/11169)._
