Automatic indi-allsky backup on external drive (Fritzbox NAS) – Phase 2: Files

After the database, configuration and migration of indi-allsky have already been automatically backed up to an external drive, the next step was to work on the actual files: the night images from which Timelapse, Keogramm and Startrails will later be created.

The basis for this is phase 1 of the backup, which I have described here:

Automatic indi-allsky backup on external drive (Fritzbox NAS) – Phase 1

Phase 2 is much more demanding. While database backups are comparatively small and deterministic, with image data we are quickly talking about several gigabytes per night – and about data that is not all equally valuable.

Why not simply “back up everything”?

An all-sky system produces images every night – regardless of whether the sky is clear, partially cloudy or completely unusable. If you backed up all the files blindly, even a large external hard disk would fill up very quickly.

That’s why it was clear from the start: the backup must be quality-based.
Not every night is equally valuable – and with indi-allsky this can be derived very well from the database.

And this is how I proceeded…

Automatic indi-allsky backup on external drive (Fritzbox NAS)

In this article, I describe how I back up my indi-allsky installation on my Raspberry Pi fully automatically to an external hard disk.

The official indi-allsky documentation describes very well what should be backed up – but leaves open how to turn it into a reliable, automated backup.

In my setup, indi-allsky runs permanently on a Raspberry Pi. The backup is not done locally, but on an external SSD on a Fritzbox, connected via SMB.

The aim was to consistently implement the recommendations from the official documentation: Backup and Recovery – indi-allsky and to expand it to production readiness:

  • external target
  • automatic backups
  • integrity checks
  • time-based retention
  • Mail notification in case of errors

…and this is how I proceeded!

Digital picture frame with Allsky images: Update with timelapse videos on the Raspberry Pi

After using the basic version of my Raspberry Pi setup as a digital picture frame for a few weeks in everyday life, it was clear that the system was stable – but the dashboard itself could be significantly improved.

I have described the basis here:
Raspberry Pi as a digital picture frame in kiosk mode – hardware, setup & troubleshooting

This update builds exactly on this and describes the final, corrected version, which is now running permanently and unattended.

indi-allsky Watchdog: Automatic reboot in case of camera problems with systemd and Bash

Bitchy USB cameras like the ZWO ASI678MC, cheaply made cables, temperature fluctuations: Raspberry Pi-based all-sky cameras are technically demanding. Even stable setups with indi-allsky can get into a state where no more new images are generated – without the process itself crashing.

This article shows a robust, tried-and-tested watchdog solution that works independently of indi-allsky internals:
An external watchdog monitors the actual image production (JPGs) and automatically restarts indi-allsky as soon as the data flow stalls. Optionally including e-mail notification.

Raspberry Pi as a digital picture frame in kiosk mode – hardware, setup & troubleshooting

External displayI had the crazy idea of building a digital picture frame to display the latest photo from my Allsky camera. The main trigger was the realization that indi-allsky with Redirect Views makes it really easy to always display the latest picture. And the second realization: touch displays aren’t even that expensive.

In this article, I document a tried-and-tested setup with Raspberry Pi 4, HDMI touch display and Chromium in real kiosk mode – including typical pitfalls and their solutions.

Hardware setup

The following components were used for the setup:

  • Raspberry Pi 4 (2-8 GB RAM)
  • HDMI touch display (10.1 inch, 1280×800) – available e.g. from a large Chinese online retailer – detailed information here
  • MicroSD card (min. 32 GB)
  • Separate power supply for Raspberry Pi and display
  • USB touch cable + HDMI cable

Contrary to the manufacturer’s instructions, I use neither a Y-cable nor a loop-through solution for the power supply of Pi and display, but a dual-port power supply (USB-C for the Pi, USB-A/micro-USB for the display).