Specification | replaced by | Example |
%%a | The abbreviated weekday name according to the current locale | Thu |
%y | Year, last two digits (00-99) | 01 |
%Y | Year incl. century | 2020 |
%m | Month as decimal number (01-12) | 08 |
%%d | The day of the month as decimal number (01-31) | 23 |
%H | The hour in 24-hour format (00-23) | 14 |
%M | The minute as decimal number (00-59) | 55 |
%S | The second as decimal number (00-60) | 02 |
%V | The ISO 8601 week number of the current year as decimal number (01-53) | 34 |
%T | The time in 24-hour notation (%H:%M:%S) | 14:55:02 |
Spezifizierung | ersetzt durch | Beispiel |
%%a | Der abgekürzte Wochentagsname entsprechend dem aktuellen Gebietsschema | Mo |
%y | Jahr, letzte zwei Ziffern (00-99) | 01 |
%Y | Jahr incl. Jahrhundert | 2020 |
%m | Monat als Dezimalzahl (01-12) | 08 |
%%d | Der Tag des Monats als Dezimalzahl (01-31) | 23 |
%H | Die Stunde im 24-Stunden-Format (00-23) | 14 |
%M | Die Minute als Dezimalzahl (00-59) | 55 |
%S | Die Sekunde als Dezimalzahl (00-60) | 02 |
%V | Die ISO 8601-Wochennummer des laufenden Jahres als Dezimalzahl (01-53) | 34 |
%T | Die Uhrzeit in 24-Stunden-Notation (%H:%M:%S) | 14:55:02 |
local Object | remote Object | Date / Time |
$idx | "; $out .= "$ro | "; $out .= "$ts | "; $out .= "
define <Name> SSFile <ServerAddr> [<Port>] [<Protocol>]
Name | the name of the new device in FHEM |
ServerAddr | the IP address of the Synology DS. Note: If the DNS name is used instead of IP address, the attribute dnsServer should be set in the global Device ! |
Port | optional - port of Synology DS (default: 5000). |
Protocol | optional - protocol to communicate with the DS, http or https (default: http). |
After defining a device, only the set command credentials is available. This command first makes the access parameters known to the Device.define SynBackup SSFile 192.168.2.10
define SynBackup SSFile 192.168.2.10 5001 https
# creates a SSFile device with default port (5000/http) or https with port 5001.
recursive= | true: Delete files within a folder recursively. (default) |
false: Delete only first level file/folder. If a folder to be deleted contains a file, an error will occur because the folder cannot be deleted directly. |
dest= | <filename>: the object will be saved with new name in default path |
<path/filename>: the object will be saved with new name in the given path | |
<path/>: the object will be saved with original name in the specified path. Important: the path must end with a "/". |
-all- | deletes all entries present in the send queue |
-permError- | deletes all entries that are excluded from further processing due to a permanent error |
<Index> | deletes a unique entry from the send queue |
dest= | <Folder>: destination path to store the files in the Synology filesystem (the path starts with a shared folder and ends without "/") |
POSIX % wildcards can be specified. |
ow= | true: the file will be overwritten if present in the destination path (default), false: the file will not be overwritten |
cdir= | true: create parent folder(s) if not present. (default), false: do not create parent folder(s) |
mode= | full: all objects except those specified in the excludeFromUpload attribute will be included (default) |
inc: only new objects and objects that have changed after the last upload will be considered | |
nth:<days>: only objects newer than <days> are considered (fractional numbers are allowed, e.g. 3.6) | |
struc= | true: all objects including their directory structure will be stored in the destination path (default) |
false: all objects will be saved without their original directory structure in the destination path |
sort_direction= | asc: sort ascending, desc: sort descending |
onlywritable= | true: list writable shared folders, false: list writable and read-only shared folders |
limit= | integer: number of files requested. 0 - show all files in a given folder (default). |
pattern= | Pattern to filter files to display or file extensions. Multiple patterns can be specified separated by ",". |
filetype= | file: list files only, dir: list folders only, all: list files and folders |
define <Name> SSFile <ServerAddr> [<Port>] [<Protocol>]
Name | der Name des neuen Devices in FHEM |
ServerAddr | die IP-Addresse der Synology DS. Hinweis: Wird der DNS-Name statt IP-Adresse verwendet, sollte das Attribut dnsServer im global Device gesetzt werden ! |
Port | optional - Port der Synology DS (default: 5000). |
Protocol | optional - Protokoll zur Kommunikation mit der DS, http oder https (default: http). |
Nach der Definition eines Devices steht nur der set-Befehl credentials zur Verfügung. Mit diesem Befehl werden zunächst die Zugangsparameter dem Device bekannt gemacht.define SynBackup SSFile 192.168.2.10
define SynBackup SSFile 192.168.2.10 5001 https
# erstellt ein SSFile-Device mit Standardport (5000/http) bzw. https mit Port 5001
recursive= | true: Dateien innerhalb eines Ordners rekursiv löschen. (default) |
false: Nur erste Ebene Datei/Ordner löschen. Wenn ein zu löschender Ordner eine Datei enthält, wird ein Fehler auftreten, weil der Ordner nicht direkt gelöscht werden kann. |
dest= | <Filename>: das Objekt wird mit neuem Namen im default Pfad gespeichert |
<Pfad/Filename>: das Objekt wird mit neuem Namen im angegebenen Pfad gespeichert | |
<Pfad/>: das Objekt wird mit ursprünglichen Namen im angegebenen Pfad gespeichert. Wichtig: der Pfad muß mit einem "/" enden. |
-all- | löscht alle in der Sendequeue vorhandenen Einträge |
-permError- | löscht alle Einträge, die durch einen permanenten Fehler von der weiteren Verarbeitung ausgeschlossen sind |
<Index> | löscht einen eindeutigen Eintrag der Sendequeue |
dest= | <Ordner>: Zielpfad zur Speicherung der Files im Synology Filesystem (der Pfad beginnnt mit einem shared Folder und endet ohne "/") |
Es können POSIX %-Wildcards angegeben werden. |
ow= | true: das File wird überschrieben wenn im Ziel-Pfad vorhanden (default), false: das File wird nicht überschrieben |
cdir= | true: übergeordnete(n) Ordner erstellen, falls nicht vorhanden. (default), false: übergeordnete(n) Ordner nicht erstellen |
mode= | full: alle außer im Attribut excludeFromUpload angegebenen Objekte werden berücksichtigt (default) |
inc: nur neue Objekte und Objekte die sich nach dem letzten Upload verändert haben werden berücksichtigt | |
nth:<Tage>: nur Objekte neuer als <Tage> werden berücksichtigt (gebrochene Zahlen sind erlaubt, z.B. 3.6) | |
struc= | true: alle Objekte werden inkl. ihrer Verzeichnisstruktur im Zielpfad gespeichert (default) |
false: alle Objekte werden ohne die ursprüngliche Verzeichnisstruktur im Zielpfad gespeichert |
sort_direction= | asc: aufsteigend sortieren, desc: absteigend sortieren |
onlywritable= | true: listet beschreibbarer freigegebener Ordner, false: auflisten beschreibbarer und schreibgeschützter freigegebener Ordner |
limit= | Integer: Anzahl der angeforderten Dateien. 0 - alle Dateien in einem bestimmten Ordner zeigen (default). |
pattern= | Muster zum Filtern von anzuzeigenden Dateien bzw. Dateiendungen. Mehrere Muster können durch "," getrennt angegeben werden. |
filetype= | file: nur Dateien listen, dir: nur Ordner listen, all: Dateien und Ordner listen |