Introduction This guide details a robust backup solution for Raspberry Pi systems, featuring Docker container management, service handling, and smart retention policies. The solution uses rsync over SSH to create efficient, incremental backups to a Synology NAS. Core Features & Technical Analysis Service and Container Management # Smart handling of critical services CRITICAL_SERVICES=(...
Back-Up of Synology NAS Shared Folders to external Raspberry Pi with attached USB HDD
#!/bin/bash # Backup Configuratie BACKUP_KEY="/var/services/homes/Erik/.ssh/id_ed25519" REMOTE_USER="erik" REMOTE_HOST="backup.janssengelen.nl" REMOTE_ROOT="/mnt/backup/synology_backup" LOG_FILE="/volume1/scripts/backup.log" LOG_MAX_SIZE=10485760 # Max log size in bytes (10MB) LOG_BACKUP_COUNT=7 # Number of backup logs to keep # Bronmappen voor backup SOURCES=( "/volume1/homes"...
Backup USB-SSD > NAS HDD
Synology won’t use a USB-SSD as source for backup, so you need a mount
Create a shared folder on Synology NAS,
Via File Station on Synology DSM
Create Shared Folder, e.g usb_source
sudo mount --bind /volumeUSB1/usbshare /volume1/usb_sourceCopy
Now you can use the usb_source shared folder (which is mounted to the USB-SSD) as backup source
Building Backup from RPi attached USB-SSD with Immich photo source to Synology NAS
Learn how to create an intelligent backup solution that mirrors your external SSD drive from a Raspberry Pi to a Synology NAS, complete with real-time monitoring and smart file deletion handling. This comprehensive guide demonstrates how to maintain perfect backups of your photo library while preserving deleted files in a separate '_deleted' folder with their original directory structure intact.
Watch folder NAS > RPi
This describes the proces to follow, Watch a folder on Synology NAS (DSM 7.2.x) Any changes (added files) Copy / Move them to a folder on Raspberry Pi external USB SSD Delete them from the NAS sudo mkdir -p /mnt/RPi-MOUNTCopy sudo mount -t nfs 192.168.1.3:/volume1/scan-move /mnt/scan-moveCode language: JavaScript (javascript)Copy sudo mount -t nfs NAS-IP:/volume1/NAS-folder /mnt/RPi-MOUNTCode...