Menu

Shut down only if no cloud backup task is active

Help
2018-02-01
2021-03-22
  • Emanuel Paul

    Emanuel Paul - 2018-02-01

    Hello

    I use APM and it works very good for me except one thing. I use hubic to perform cloud backup. Now I'm looking for a rule to set up, which suspends the shut down process as long the backup job is active.

    I tried it with ports (54000-54999) because I found out in my router, that ports in this range are used, while backing up to hubic, but this does not work.

    Please help me about this. Thanks a lot.

     
  • Renaud Métrich

    Renaud Métrich - 2018-02-01

    We need to know the ports used remotely, or at least some IP address you are contacting for hubic backup.
    While a backup is running, please take some netstat -tanp and provide output.

     
  • Emanuel Paul

    Emanuel Paul - 2018-02-02

    Hi. Thank you for your help. I created a netstat whil backup running. You find it attached.

    I think it must be:
    192.168.9.20:45244 147.135.143.143:443 ESTABLISHED -
    192.168.9.20:45247 147.135.143.143:443 CLOSE_WAIT -

    On the other hand, if it is this, the rule I set up in APM (Shutdown-Connection: 192.168.9.20 10000-65535) should work, but it doesn't...

     
  • Renaud Métrich

    Renaud Métrich - 2018-02-02

    Your configuration in the Connections plugin should be:

    147.135.143.143
    

    or for clarity

    rhost 147.135.143.143 lports *
    

    This makes me realize that with the plugin, it is not possible to filter on the remote port (here 443). I should add this.

     
    • Rain Forest

      Rain Forest - 2021-03-22

      Hi Renaud,
      Thanks for this awesome tool! I also would like to configure the connections plug-in to wait for my Duplicaty backup to finish. However, I'm unable to do this by IP address as the IP is changing and I'm connecting to the server with a DynDNS address.

      So with no hostname or remote port option, I'm unable to target the connection for my backup. Is there any chance you could still add the remote port option you mentioned in your previous comment or a way to enter a host name to check for instead of an IP?

      Thanks,
      Rain

       
  • Emanuel Paul

    Emanuel Paul - 2018-02-02

    thank you. will try it over night.

    what means clarity in this context?

     
  • Emanuel Paul

    Emanuel Paul - 2018-02-21

    Hi again.

    After a few days of testing I can say, that it works most of the time. DiskStation only shuts down, if there is no connection to 147.135.143.143.

    But from time to time it seems, like the connection to this IP is not active even while the backup job is working. If the connection check happens exactly in this moment, APM shuts down DS and the backup job is aborted.

    I tried to test some different "Messintervall in Minuten" and "Reihe von Massnahmen pro Intervall" settings (Don't know the english texts, but you can find on the attached screenshot what I mean).

    But I don't understand if these settings give the possibility to define, that the check has to be done 5 times in 5 minutes and only if all 5 checks are ok the DS shuts down.

     
  • Renaud Métrich

    Renaud Métrich - 2018-02-21

    If you set Messintervall in Minuten to 10
    and Reihe von Massnahmen pro Intervall to 10, then there will be 1 check every minute (10 / 10 = 1).
    If, for the whole 10 checks, all checks said "there was no connection", then the DS will shut down.
    Otherwise it will wait for 10 successive checks that say "there was no connection"

     
  • Emanuel Paul

    Emanuel Paul - 2018-02-21

    Thank you. I try this...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.