script

  1. Geezer-In-Training

    created simple script for Synology task to restart helium miner

    When my MNTD Helium miner shows offline or is not syncing as expected, a device reboot is a good option to have. Unlike Sensecap or Syncrobit, MNTD has no dashboard except via Bluetooth. The solution I found is using the task scheduler in Diskstation. Create a task: Run as root and choose the...
  2. BobW

    Is there a way to script docker export settings?

    Synology GUI has this nice feature to export a docker container or just the settings to a name.json file. Does anyone no if it is possible to script this for backup purposes? Now One has to do this manually, but it would be nice to have a script that can be run by scheduled task to do this. I...
  3. U

    Scripting of Drive API - force update filelist

    Dear experts, I am running for several month a bash script which preprocesses all my pdf documents. The script roughly does following steps: * OCR & rename file * move file to drive folder by shell "mv" command * tagging file with drive labels by drive api (GET/POST entry.cgi) After moving the...
  4. TommySnake

    Script for Hyper Backup and Plex

    I want to use hyper-backup to backup my plex server. I have Plex upgraded to version 7.0 When I look at the shared folders I now have 2 plex folders. (Plex) and (PlexMediaServer), question is are both of these folders still in use or is the (Plex) shared folder left over from Plex 6.0? 2nd...
  5. Jan Janowski

    Can Timed script file from NAS reset Arris Modem in front of Router?

    Posting here in NAS area, because no Task Manager exists on RT2600ac router. During a visit to Daughter in California, Access to everything at home in NC went dead... Neighbors fine, but I'm dead. Ended up being Arris modem locked up... Therefore I had no access to files, etc, and it turns...
  6. P

    Script for faster rebuilds

    I own 2 Synology devices for many years and have done raid rebuilds or expansion numberous times. Unfortunately the Synology GUI reports progress on only the current MD device in progress. When it finishes that MD device and advances to the next, the progress resets back to 0%. It can...
  7. PeterSuh

    Info How to write a remote server shutdown script after checking the shared folder synchronization log table using SQLITE3 built-in synology

    Saves the results of the successful processing of shared folder synchronization to a DB file through the Log Center. And then we're going to use SQLITE3 built-in synology to re-Script to check. Once a normal BACKUP has been verified, the remote NAS server can be shut down via the SSH...
  8. Robbie

    Synology Network UPS Server - Client Shutdown Script?

    Begrudgingly bought yet-another replacement UPS; slowly working my way through the major UPS brands... Anyway, is there a way to send a shutdown command from the Synology UPS Server to a non-Synology client via a task, script or another method? Ideally I would like a graceful shutdown of a...
  9. M

    Script to change led_brightness_schedule in synoinfo.conf

    I am working on a script that changes the led_brightness_schedule of my NAS, based on the sunrise and sunset times at my location, in the synoinfo.conf file, see code below (feel free to use it) #!/bin/bash #Sunrise and Sunset times by https://sunrise-sunset.org strindex() { x="${1%%$2*}"...
  10. B

    php script with mssql and mysqli - cannot run from command line

    I have a php script that used mysqli and mssql (as in php version 5.6) When I run the script from a browser it runs fine (WebStation). But if I run it from either a terminal command line or run it as a user-defined scheduled script (in Task Scheduler) it returns mysqli and mssql not found...
  11. P

    Question Mount / unmount remote folder from script?

    I would like to be able to mount a remote folder (CIFS / SMB), perform an rsync, and dismount the folder. If not all that, at least check if the folder is mounted and mount it if not already mounted. (I've already got the rsync script running.) I have no trouble mounting the folder using the...
  12. FaasteerCZ

    Question Is there a way for automatic export a Let's Encrypt certificate to a folder?

    Hello to everyone, I had a DS214 for many years and I was very happy with its features. But I needed more space and more disks, so I upgraded to DS918 + a few days ago. And because I try to make the most of my equipment, I also started using also the Docker and in it jacobalberty UniFi...
  13. fredbert

    Info Scheduled task - run script to your schedule

    A simple trick to adjust the scheduled run time of a script is to use the unix sleep command as the top of the script. Example: I have a script that copies files from one remote folder to another local one. The remote server creates the new files on each quarter hour. The files take just over a...
  14. M

    Question Task scheduler - script output

    Does anyone know how to get the output of a script into the task scheduler 'Run Result' window ? eg if I run a simple script that echoes 'Hello' in the terminal, I presume this is stdout ? Yet when run in Task Scheduler, both the 'Script:' and 'Standard output/error:' boxes are empty...
  15. M

    Trigger a script on safe mode

    I have a Unifi cloud key (as part of a UDM), a DS918, and a low end Cyberpower UPS attached via usb to the DS. The cloud key can have well documented database corruption issues if it loses power abruptly, so I'd like to run a shell script when the synology enters Safe Mode prior, prior to...
  16. D

    Update certs via script

    Hi, I followed this tutorial acmesh-official/acme.sh. The only difference is that the certs are generated elsewhere, and just copied over to a folder on synology. Then - the script takes over and copies the cert files to all folders, services & reverse proxy. It seems to work fine for all...
Top