{"version":"1.0","type":"rich","title":"Borg Backup Script","description":"This example visualizes the backup decision logic of a Borg backup helper script, showing the time elapsed since the last backup and whether a new backup is due. It calculates the interval using shell commands and date arithmetic, comparing hours elapsed against a 24-hour threshold. The script uses the `stat` command to read the modification timestamp from `last_backup.txt`, `expr` for arithmetic, and the Borg CLI with `borg create` to perform the backup, including exclusions for patterns like `**/node_modules`. The visualization relies on the script’s output, echoing days and hours since the last backup.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-02e8a1f662d100a7ed80627801d0aed0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}