Syno Snapshot Checker

  • Ab sofort steht euch hier im Forum die neue Add-on Verwaltung zur Verfügung – eine zentrale Plattform für alles rund um Erweiterungen und Add-ons für den DSM.

    Damit haben wir einen Ort, an dem Lösungen von Nutzern mit der Community geteilt werden können. Über die Team Funktion können Projekte auch gemeinsam gepflegt werden.

    Was die Add-on Verwaltung kann und wie es funktioniert findet Ihr hier

    Hier geht es zu den Add-ons

DaveR

Benutzer
Sehr erfahren
Add-on Developer
Registriert
30. März 2022
Beiträge
1.207
Reaktionspunkte
2.159
Punkte
229
I'm writing a script that when scheduled will send you an email if any of your snapshot settings have changed.

This continues on from the comments here:
So far the script gets most of the information it needs. This is just a bunch of debug code for now.
Code:
root@DISKSTATION:~# /volume1/scripts/syno_snapshot_checker.sh

share:     Backups
snapshots: 15
scheduled: true
oldest:    2026.02.21-16.00
newest:    2026.03.07-16.00
immutable: true

share:     docker
snapshots: 15
scheduled: true
oldest:    2026.02.21-16.00
newest:    2026.03.07-16.00
immutable: false

share:     downloads
snapshots: 8
scheduled: true
oldest:    2026.03.01-00.00
newest:    2026.03.08-00.00
immutable: false

share:     DS720_root
snapshots: 1
scheduled:
oldest:    2024.07.30-14.44
newest:    2024.07.30-14.44
immutable: false

share:     ExportTools
snapshots: 0

share:     homes
snapshots: 31
scheduled: true
oldest:    2026.02.05-16.00
newest:    2026.03.07-16.00
immutable: true

share:     Media
snapshots: 0

share:     music
snapshots: 0

share:     NetBackup
snapshots: 19
scheduled: true
oldest:    2023.03.31-16.00
newest:    2023.06.04-16.00
immutable: false

share:     photo
snapshots: 0

share:     PlexMediaServer
snapshots: 0

share:     Resilio Sync
snapshots: 19
scheduled: true
oldest:    2023.03.31-16.00
newest:    2023.06.04-16.00
immutable: false

share:     scripts
snapshots: 1
scheduled: true
oldest:    2026.03.08-12.05
newest:    2026.03.08-12.05
immutable: true

share:     sharesync
snapshots: 0

share:     Syno_Archive
snapshots: 0

share:     temp
snapshots: 15
scheduled: true
oldest:    2026.02.21-16.00
newest:    2026.03.07-16.00
immutable: true

share:     transfer
snapshots: 31
scheduled: true
oldest:    2026.02.05-16.00
newest:    2026.03.07-16.00
immutable: true

share:     vmm-transfer
snapshots: 0

share:     VMM_Export
snapshots: 0

share:     web
snapshots: 31
scheduled: true
oldest:    2026.02.05-16.00
newest:    2026.03.07-16.00
immutable: true

share:     web_packages
snapshots: 19
scheduled: true
oldest:    2023.03.31-16.00
newest:    2023.06.04-16.00
immutable: false
 
3 hours ago I asked claude to help me find where the snapshot scheduled tasks are hiding in DSM. 14 pages(!) of chatting later I had all I needed. But claude wanted to know more about my plans for the script and how I was planning on doing x, y and z. Another 4 pages of chatting and claude is still asking questions. I feel like I'm chatting with a real person, who knows about ransomware prevention plus how to program and is interested in what I'm doing. Now we're chatting about various edge cases.

Who knew that AI could be so curious :)
 
  • Like
Reaktionen: Skyhigh
Nice 🙂
Man you're quick :D I didn't even had time to take a deeper look into your other post with the Notes&Infos about the scheduling 😅

______

Yeah, I was talking with Copilot a few days ago about sciFi books after I finished one to find a new one like that.
It wanted to know what I would change if I would write a book. So I began to tell, talking back and forth about scenarios, starships, species.... and in the end, I had constructed a stroy for a book in my head which I really like. Maybe I'm gonna try to write it for real.

The time of the "Turing Test" as AI Detection is officially over.
 
  • Like
Reaktionen: DaveR
Slowly getting there.

Code:
root@DISKSTATION:~# /volume1/scripts/syno_snapshot_checker.sh

Shared Folder:       Backups
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-09 16:00
[Snapshot Settings]
  keep_days:         14
  keep_latest:       128
  immutable:         yes
  immutable_days:    7
[Existing Snapshots]
  quantity:          15
  oldest:            2026.02.22-16.00
  newest:            2026.03.08-16.00
  last is immutable: true
  last is locked:    false


Shared Folder:       docker
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-09 16:00
[Snapshot Settings]
  keep_days:         14
  keep_latest:       128
  immutable:         yes
  immutable_days:    7
[Existing Snapshots]
  quantity:          15
  oldest:            2026.02.22-16.00
  newest:            2026.03.08-16.00
  last is immutable: false
  last is locked:    false


Shared Folder:       downloads
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-10 00:00
[Snapshot Settings]
  keep_days:         7
  keep_latest:       128
  immutable:         false
[Existing Snapshots]
  quantity:          8
  oldest:            2026.03.02-00.00
  newest:            2026.03.09-00.00
  last is immutable: false
  last is locked:    false


Shared Folder:       homes
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-09 16:00
[Snapshot Settings]
  keep_days:         30
  keep_latest:       128
  immutable:         yes
  immutable_days:    30
[Existing Snapshots]
  quantity:          31
  oldest:            2026.02.06-16.00
  newest:            2026.03.08-16.00
  last is immutable: true
  last is locked:    false


Shared Folder:       music
No snapshots!


Shared Folder:       NetBackup
[Schedule]
                     Not scheduled!
[Snapshot Settings]
                     Not configured!
[Existing Snapshots]
  quantity:          19
  oldest:            2023.03.31-16.00
  newest:            2023.06.04-16.00
  last is immutable: false
  last is locked:    false


Shared Folder:       photo
No snapshots!


Shared Folder:       PlexMediaServer
No snapshots!


Shared Folder:       Resilio Sync
[Schedule]
                     Not scheduled!
[Snapshot Settings]
                     Not configured!
[Existing Snapshots]
  quantity:          19
  oldest:            2023.03.31-16.00
  newest:            2023.06.04-16.00
  last is immutable: false
  last is locked:    false


Shared Folder:       scripts
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-09 12:05
[Snapshot Settings]
  keep_days:         30
  keep_latest:       128
  immutable:         yes
  immutable_days:    30
[Existing Snapshots]
  quantity:          4
  oldest:            2026.03.08-12.05
  newest:            2026.03.09-06.05
  last is immutable: true
  last is locked:    false


Shared Folder:       Syno_Archive
No snapshots!


Shared Folder:       temp
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-09 16:00
[Snapshot Settings]
  keep_days:         14
  keep_latest:       128
  immutable:         yes
  immutable_days:    7
[Existing Snapshots]
  quantity:          15
  oldest:            2026.02.22-16.00
  newest:            2026.03.08-16.00
  last is immutable: true
  last is locked:    false


Shared Folder:       transfer
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-09 16:00
[Snapshot Settings]
  keep_days:         30
  keep_latest:       128
  immutable:         yes
  immutable_days:    30
[Existing Snapshots]
  quantity:          31
  oldest:            2026.02.06-16.00
  newest:            2026.03.08-16.00
  last is immutable: true
  last is locked:    false


Shared Folder:       vmm-transfer
No snapshots!


Shared Folder:       VMM_Export
No snapshots!


Shared Folder:       web
[Schedule]
  schedule_state:    enabled
  schedule_type:     daily
  next_run_date:     2026-03-09 16:00
[Snapshot Settings]
  keep_days:         30
  keep_latest:       128
  immutable:         yes
  immutable_days:    30
[Existing Snapshots]
  quantity:          31
  oldest:            2026.02.06-16.00
  newest:            2026.03.08-16.00
  last is immutable: true
  last is locked:    false


Shared Folder:       web_packages
[Schedule]
                     Not scheduled!
[Snapshot Settings]
                     Not configured!
[Existing Snapshots]
  quantity:          19
  oldest:            2023.03.31-16.00
  newest:            2023.06.04-16.00
  last is immutable: false
  last is locked:    false
 
  • Like
Reaktionen: Skyhigh
More progress :)

1773046165870.png

Log file contents:
Code:
[Backups]
immutable=yes
newest=2026.03.09-16.00
last_is_locked=false
keep_days=14
next_run_date=2026-03-10 16:00
keep_latest=128
schedule_type=daily
volume=volume1
last_is_immutable=true
immutable_days=7
schedule_state=enabled
quantity=15
oldest=2026.02.23-16.00

[docker]
immutable=yes
newest=2026.03.09-16.00
last_is_locked=false
keep_days=14
next_run_date=2026-03-10 16:00
keep_latest=128
schedule_type=daily
volume=volume1
last_is_immutable=false
immutable_days=7
schedule_state=enabled
quantity=15
oldest=2026.02.23-16.00

[downloads]
immutable=false
newest=2026.03.09-00.00
last_is_locked=false
keep_days=7
next_run_date=2026-03-10 00:00
keep_latest=128
schedule_type=daily
volume=volume1
last_is_immutable=false
schedule_state=enabled
quantity=8
oldest=2026.03.02-00.00
 
  • Like
Reaktionen: Skyhigh

Additional post fields

 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat