Skip to content

Some Linux scripts to do Web stuffs.

DynamicDNS with OVH

  • OVH DynHost help page
    • Note that IP may not be passed in the URL!
  • Script /usr/sbin/



    Output to a logfile

    exec &> /home/ncbackup/DDNS/"$(date '+%Y-%m-%d %T').txt" echo "Starting DDNS update ..."

    curl -i -H "Authorization: Basic hjkhjkhjkhjkhjk=" ""'&'""

    Remove logs older than 14 days

    find /home/ncbackup/DDNS -mtime +14 -type f -delete echo "Removed old logs" ```

    • and then usual stuff like other scripts, using ncbackup user