Backup and Restore

Backup & Resilience

Never lose your JanusEye configuration

An SD card can fail at any time. Here is how to keep your settings, scripts, and SSL certificates safe.

🚀 Already installed!

The backup script backup_januseye.sh was automatically configured during your initial JanusEye installation. It is located in your main folder and already has the necessary permissions.

1. Create a Manual Backup

There are two ways to keep your data safe:

Option A: From the JanusEye Interface (Recommended)

Since version 1.0.8, you no longer need to open a terminal to back up your settings.

  • Go to the Settings page of your web interface.
  • Scroll down to the 📊 STORAGE (SD CARD) block.
  • Click the blue button 💾 RUN MANUAL BACKUP.

The interface will confirm the success of the operation within a few seconds. The archive is then generated in your backup folder on the Raspberry Pi.

Option B: Via the Terminal (SSH)

For advanced users or during maintenance, you can use the backup_januseye.sh script, which bundles your code, .conf settings, and security certificates into a single compressed archive.

~/JanusEye/backup_januseye.sh

The archive will be created in the ~/Backups_JanusEye/ folder.

 

💡 Golden Rule: A backup on the same SD card is useless if the card dies. Use FileZilla to regularly copy your .tar.gz files to your personal computer.

2. Automate Backups (Cron)

To have JanusEye back itself up every Sunday at midnight, add a scheduled task:

crontab -e

Add this line to the end of the file:

0 0 * * 0 /home/user/JanusEye/backup_januseye.sh > /dev/null 2>&1

This line schedules an automatic backup every Sunday at midnight.

3. Restoration Procedure

In case of a full reinstallation on a new Raspberry Pi:

  1. Install JanusEye via the install_januseye.sh script.
  2. Copy your .tar.gz archive to the new Pi.
  3. Restore with administrator privileges:
sudo tar -xzf backup_januseye_*.tar.gz -C /

💡 Tip: Restart the system (sudo reboot) so that the restored services activate correctly.

Note: The -C / parameter places system files (services, Apache configs) directly back into their original locations.

⚠️ SECURITY: Your backups contain your SSL keys and your PIN code. Never store them on a public cloud without password protection.
⬅️ Back to previous page