Zurück zum Ranking

Create and keep multiple backup versions of your running Raspberries

backupraspberryrsynctarddrestoreraspberry-piraspbianraspbianosubuntu
Sterne-Wachstum
Sterne
1k
Forks
90
Wochenwachstum
Issues
1
5001k
Jan. 2023März 2024Mai 2025Juli 2026
README

Create and keep multiple backup versions of your running Raspberries

A high level summary is available on this page.

The complete raspiBackup documentation is available on this page

  • Primary features
    • Unattended full or incremental system backup with no shutdown of the system.
    • Backup types
      • rsync
      • tar/tgz, compression bzip2, gzip, lzip, lzma, lzop, xz and zstd can also be used
      • dd/ddz
    • No manual intervention required. Backups are created via systemd timer over night.
    • Important services can be stopped before starting the backup and will be restarted when the backup finished.
    • Any device mountable on Linux can be used as backup space (local USB disk, remote nfs drive, remote samba share, remote ssh server using sshfs, remote ftp server using curlftpfs, webdav drive using davfs, ...).
    • Supported storage devices
      • SD card
      • eMMC
      • USB device (HDD, SSD, flash drive, USB SD adapter)
      • NVMe
    • Supported boot modes
      • SD card only
      • USB disk or SSD only (USB boot mode)
      • SD card for boot and USB disk or SSD for root system (for older Raspberries which don't support USB boot)
    • Messages and completion status of backup sent via eMail, Telegram. Pushover or Slack
    • Any additional logic can be added at various steps in the backup and restore process via extensionpoints.
    • Restored backup will boot immediately.
  • Backup strategies
    • Number of backup versions to keep configurable either for sum of backups or on individual backup types
    • Smart recycle backup strategy available (e.g. save backups of last 7 days, last 4 weeks, last 12 months and last n years) - also known as grandfather, father and son backup rotation principle. The smart recycle strategy algorithm was inspired by Manuel Dewalds great article Automating backups on a Raspberry Pi NAS
    • Manual backups allow to create a kind of snapshot (so called raspiBackup snapshots) of the system just before major updates are done on
  • Possible to always keep one device up to date with the latest backup
    • A script raspiBackupAndClone can be used to synchronize the last backup with any device. The device can be used immediately in the event of an unexpected system failure.
  • Linux backup tools used
    • Standard Linux backup tools dd, tar and rsync can be used to create a backup.
    • dd and tar are full backups. rsync uses hardlinks for incremental backups.
    • dd backups can be restored with Windows tools.
  • Installation
    • Menu driven installer installs and configures raspiBackup with all major options to get raspiBackup up and running in 5 minutes. Much more options can be configured in a configuration file.
  • Usability
    • National language support:
      • English (Default)
      • German
      • Finnish (teemue)
      • Chinese (GoogleBeEvil)
      • French (mgrafr)
      • Many thanks to the folks above who translated raspiBackup messages into their native language 👍
        • Any translation help to add other languages to raspiBackup is greatly appreciated. Please read this page
    • More than 270 messages inform about
      • Backup progress
      • Configuration mismatches
      • Environment mismatches
      • Runtime errors
  • Reliability
    • Automated regressiontests make sure a new release will still backup and restore successfully.
  • Serviceability
    • Extensive logging helps to locate and fix any issues
  • Much more features available (see below).

Support

raspiBackup is supported only for RaspberryOS and Ubuntu as operating system and only for Raspberry hardware. raspiBackup runs successfully also on other Raspberry compatible hardware and other Linux distros but any support request on these unsupported environments will be rejected. Just give it a try and be happy if it works but don't ask for any support. For details see here.

Support is also given only for raspiBackup specific issues. For general Linux related questions please use other information sources.

Documentation

English

German

French

This README was translated into French. Credits to mgrafr for his translation work.

Installer

The installer uses menus, checklists and radiolists similar to raspi-config and helps to install and configure major options of raspiBackup and in 5 minutes the first backup can be created.

Screenshot1 Screenshot2 Screenshot3

Installer demo

Demo

Installation of raspiBackup is started with following command:

curl -o install -L https://raw.githubusercontent.com/framps/raspiBackup/master/installation/install.sh; sudo bash ./install

Donation

raspiBackup is maintained just by me - framp. If you find raspiBackup useful please donate to support future development and acknowledge support. For details how to donate see here

Social media

  • Youtube - Videos in English and German
  • Twitter - News and announcements in English only
  • Facebook - News, discussions, announcements and misc background information in English and German
  • Reddit - News, announcements in English only

Miscellaneous sample scripts (Code)

  • Sample wrapper scripts to add any activities before and after backup (Code)

  • Sample wrapper script which checks whether a nfsserver is online, mounts one exported directory and invokes raspiBackup. If the nfsserver is not online no backup is started. (Code)

  • Sample script which restores an existing tar or rsync backup created by raspiBackup into an image file and then shrinks the image with pishrink. Result is the smallest possible dd image backup. When this image is restored via dd or windisk32imager it's expanding the root partition to the maximum possible size. (Code)

  • Convenient helper script to backup and restore a backup. (Code)

  • Sample script which creates a backup and a clone as a cold standby boot medium(Code)

Sample extensions

There exist sample extensions for raspiBackup which report for example memory usage, CPU temperature, disk usage and more. There exist also user provided extensions.

Ähnliche Repositories
restic/restic

Fast, secure, efficient backup program

GoGo ModulesBSD 2-Clause "Simplified" Licensegorestic
restic.net
35.1k1.8k
MichaelCade/90DaysOfDevOps

This repository started out as a learning in public project for myself and has now become a structured learning map for many in the community. We have 3 years under our belt covering all things DevOps, including Principles, Processes, Tooling and Use Cases surrounding this vast topic.

ShellOtherdevopskubernetes
90daysofdevops.com
29.6k6.8k
duplicati/duplicati

Store securely encrypted backups in the cloud!

C#Otherduplicatibackup
14.8k1.1k
kopia/kopia

Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included.

GoGo ModulesApache License 2.0deduplicationbackup
kopia.io
13.7k689
borgbackup/borg

Deduplicating archiver with compression and authenticated encryption.

PythonPyPIOtherpythoncompression
borgbackup.org
13.5k864
velero-io/velero

Backup and migrate Kubernetes applications and their persistent volumes

GoGo ModulesApache License 2.0kubernetesdisaster-recovery
velero-io.github.io/velero/
10.2k1.6k
nextcloud/all-in-one

📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.

PHPPackagistGNU Affero General Public License v3.0nextcloudbackup
nextcloud.com/blog/how-to-install-the-nextcloud-all-in-one-on-linux/
10.1k1.1k
alexanderepstein/Bash-Snippets

A collection of small bash scripts for heavy terminal users

ShellMIT Licensebashcurrency-converter
9.9k844
vmware-tanzu/velero

Backup and migrate Kubernetes applications and their persistent volumes

GoGo ModulesApache License 2.0kubernetesdisaster-recovery
velero.io
9k1.4k
BlueMatthew/WechatExporter

Wechat Chat History Exporter 微信聊天记录导出备份程序

C++GNU General Public License v2.0wechatexport
8.3k933
elasticsearch-dump/elasticsearch-dump

Import and export tools for elasticsearch & opensearch

JavaScriptnpmApache License 2.0javascriptelasticsearch
7.9k868
databasus/databasus

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

GoGo ModulesApache License 2.0backupbackups
databasus.com
7.7k460