This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
# | |
# MikroTik router configuration backup | |
# for Synology DiskStation | |
# Tested on | |
# DSM 6.1.6-15266 Update 1 - MARVELL Armada XP MV78230 (DS214+) | |
# MikroTik RouterOS 6.42 - RouterBoard 2011UiAS-2HnD | |
# | |
# Author: Alain Wolf <[email protected]> - https://gist.github.com/alainwolf/ | |
# Date/Version: 2018-04-22/1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
# | |
# Synology DiskStation configuration backup | |
# Must be run as root | |
# Tested on | |
# DSM 6.1.6-15266 Update 1 - MARVELL Armada XP MV78230 (DS214+) | |
# | |
# Author: Alain Wolf <[email protected]> - https://gist.github.com/alainwolf/ | |
# Date/Version: 2018-04-22/1.5 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Create new domains (or sub-domains) in PowerDNS authoritative servers | |
# using pdnsutil | |
# | |
# Features: | |
# * DNSSEC (incl. delegation in parent zone, if on same server); | |
# * NSEC3; | |
# * CAA; | |
# * SPF, DKIM and DMARC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ash | |
# shellcheck shell=dash | |
# | |
# Nextcloud command-line upgrades for Synology DiskStation system environments. | |
# See https://docs.nextcloud.com/server/stable/admin_manual/maintenance/update.html#using-the-command-line-based-updater | |
# | |
# Its recommended to disable Nextcloud cron jobs beforehand manuallly | |
# synoschedtask --get owner=root type=daily state=enabled | |
# -------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ash | |
# shellcheck shell=dash | |
# | |
# Nextcloud core and apps update checks | |
# | |
# Doesn't output anything, if everything is up to date. | |
# Usefull when executed by cron-jobs, to only receive a mail, if updates are | |
# available. | |
# See https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env sh | |
# shellcheck shell=dash | |
# | |
# Nextcloud Command-Line Interface | |
# | |
# See https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html | |
# | |
# -------------------------------------------------- | |
# Configuration Settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ash | |
# shellcheck shell=dash | |
# | |
# Check Nextcloud core for available updates. | |
# * Update all Nextcloud apps to their latest available versions. | |
# * Notify if core update is available or any apps have been updated. | |
# * Stay silent otherwise (for cron-jobs or scheduled tasks). | |
# * Runs on standard Linux (Ubuntu, etc.), as well as Synology NAS DSM (if you get your settings right). | |
# * Works with different instances with dedicated Linux user profiles. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Compare Domain Serials of hidden primary server with public servers | |
# | |
# Our hidden primary server | |
_PRIMARY_SERVER="dns0.example.net." | |
# The domain to query | |
_domain="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ****************************************************************************** | |
# MariaDB Backup Scrip to be run on Synology NAS | |
# (MariaDB 10.3.29-1038 package published by Synology Inc.) | |
# | |
# * Full online physical backups with mariabackup: | |
# - no databse downtime (as with physical copy or HyperBackup) | |
# - database caches are not affected (as with SQL-dumps) | |
# * Ensure only one single instance is running at same time | |
# * Ensure at least one successful full backup is present at all times |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Refresh list of Internet root servers from Internic | |
# See https://www.iana.org/domains/root/files | |
# | |
# Vars | |
REMOTE_URL="https://www.internic.net/domain/named.cache" | |
LOCAL_FILE="/var/lib/unbound/root.hints" | |
FILE_USER="unbound" |