10 years raspiBackup
- Details
- Category: raspiBackup
-
Also available:
- Hits: 3211
10 years ago today the first version of raspiBackup was stored in my local cvs.
revision 1.1
date: 2013-08-07 21:28:14 +0200; author: framp; state: Exp; commitid: 10052029FC71A98602F;
Initial version
=============================================================================
This cvs unfortunately no longer exists because it would be interesting to see how the script has changed over the 10 years. Initially there were about 50 lines of code. Today raspiBackup has about 8000 lines of code.
Update 5/2025: The wayback machine has a copy from 2013/6 and there I found an initial version or raspiBackup. You can find it here. Actually this version has 314 LOCs instead of 50.
How to create a cold standby clone with raspiBackup?
- Details
- Category: raspiBackup
-
Also available:
- Hits: 1256
raspiBackup creates on a regular base backups and keeps a configurable number of backups which can be restored if needed. A lot of folks want to have the latest backup restored already on a second device which can be bootet immediately if the system fails for some reasons to reduce the downtime of the system. raspiBackup doesn't support to create a clone. But it's possible with a small helper tool which executes a restore just after the backup. If rsync as the backup type is used the restore is actually no restore but a synchronization of the changes between the last restored backup and latest backup which is in general very fast.
Read more: How to create a cold standby clone with raspiBackup?
raspiBackup in a nutshell
- Details
- Category: raspiBackup
-
Also available:
- Hits: 5881
Visit this page to get a ligh level overview about raspiBackup. Much more details you will find here.
raspiBackup - Smart recycle backup strategy
- Details
- Category: raspiBackup
-
Also available:
- Hits: 15406
Starting with release 0.6.5 of raspiBackup an itelligent rotation strategy of your backups is supported. It's also called GFS (grandfather-father-son backup). The implementation was inspired by Manuel Dewalds article Automating backups on a Raspberry Pi NAS
raspiBackup retains following backups per default if a daily backup is created:
1) Backup of the current day and the last 6 days
2) Backup of the current week and the last 3 weeks
3) Backup of the current month and the last 11 months
4) Backup of the current year and the last two years
If weekly backups are created there will be no daily backups kept. Different retention values for daily, weekly, monthly and yearly can be defined with an option, e.g. if you want to retain weekly, monthly and yearly backups. Keep in mind the weekly backup day then will become the day of the weekly and monthly backup: If you configure Monday as the weekly backup day your monthly backup will be the first Monday of every month. Yout yearly backup will be the first Monday of the year. Iy you create a weekly backup every Sunday the monthly backup will be the first Sunday of the month and the yearly backup will be the first Sunday of the year.
raspiBackup - Errormessages, root causes, suggested actions
- Details
- Category: raspiBackup
-
Also available:
- Hits: 19496
There exist three types of messages:
1) Informational - Messagenumber ends with I
2) Warning - Messagenumber ends with W
3) Error - Messagenumber ends with E
Most errormessages of raspiBackup give detailed information about the root cause. Sometimes it's required to get additional information in order to get rid of them. raspiBackup has about 200 errormessages and it's so boring to explain all of them here. If you miss a message first use your search engine and serach for the message number. if you still don't find an answer add the message text in a comment at the end of the page and the message with more detailed explanations will be addded on this page. That way the most common raspiBackup messages will show up on this page.
Messages in the number range from 0-999 are written by raspiBackup. Messages from 1000-1999 are written by sample plugins. All other number ranges are custom plugin messages.
In addition raspiBackup terminates with an error code which oints to the root cause. A list of error codes is available at the end of this page.
If the information for a message does'nt help just use your seach engine to search for the message number (RBK....).
Read more: raspiBackup - Errormessages, root causes, suggested actions
raspiBackup - FAQ
- Details
- Category: raspiBackup
-
Also available:
- Hits: 51628
Frequent asked questions about raspiBackup. Every new user of raspiBackup should read all questions and answers.
raspiBackup - Invocation syntax and options
- Details
- Category: raspiBackup
-
Also available:
- Hits: 7019
Invocationsyntax and -options
raspiBackup has to be invoked as user root or with sudo. The invocation syntax is
raspiBackup.sh Option1 Option2 Option3 ... backupdirectory
raspiBackup Option1 Option2 Option3 ... backupdirectory
raspiBackup - How to restore your backup
- Details
- Category: raspiBackup
-
Also available:
- Hits: 46725
With raspiBackup you can create regular backups of your Raspberry. In addition you can restore a backup to any SD card. A new partition table is created on the target SD card and the backup data is restored on the partitions. If an external root filesystem was saved with raspiBackup this filesystem will also be restored to an external device.
Recently I got issues in github because restore failed. It's strictly recommended to restore your backup with the same OS the backup was created with. You're free to use another Linux release but this may the restore to fail because of different versions of the Linux tools which are usedto backup and restore the backup. In particular it's because of an incompatible change in sfdisk in Bullseye. Just use the OS the backup was created to restore the backup!
raspiBackup - Installation and configuration in 5 minutes
- Details
- Category: raspiBackup
-
Also available:
- Hits: 76029
Purpose of this page is to explain step by step how to use raspiBackup to create a backup imediately and how configure raspiBackup in 5 minutes to create a backup of your Raspberry on a regular base. This page describes for different platforms (Linux, Mac or Windows) how to restore the backup. After testing the backup and restore the next step should be to check which services have to be stopped before the backup starts. Finally cron (starting with Installer 0.4.8 systemd timer) should be configured to start raspiBackup on a regular base. Later on when you have some spare time read this page carefully to check which additional features of raspiBackup are useful for you and update the raspiBackup configuration accordingly. In any case it's strongly recommended to read the FAQ. The raspiBackup installer can be used to uninstall raspiBackup completely if for some reasons raspiBackup does not meet your requirements.
Note: In 5 minutes raspiBackup will be installed and configured if you have basic Linux knowledge. Otherwise you will need more time even the installer helps to create a basic raspiBackup configuration - unfortunately.
Read more: raspiBackup - Installation and configuration in 5 minutes
raspiBackup - Create regularly and unattended backup versions of your running Raspberries
- Details
- Category: raspiBackup
-
Also available:
- Hits: 256639
raspiBackup helps to create backups of a running Raspberry with no shutdown or manual intervention which means your can save or clone your SD card during normal operation. An exported root partition will be saved too. Important services will be stopped just before starting the backup and are started again when the backup finished. Any device which can be mounted on Linux can be used as backupspace (USB disk, USB stick, nfs, samba, sshfs, ...). The backup image can be created with dd, tar or rsync using hardlinks. Restore is possible on Windows or Linux. Source Raspbian may have been installed on SD card only or the boot partition may be on SD card and the root partition on an external USB device like USB SSD or USB stick. Raspbian installed on an USB device only using USB boot mode is also supported
Read more: raspiBackup - Create regularly and unattended backup versions of your running Raspberries
raspiBackup - General questions
- Details
- Category: raspiBackup
- Hits: 3301
If there is no specific question about raspiBackup to be asked on the respective website, general questions can be asked here. If there is a special page for the question, it will be referred to and
after the question was asked there again, answered there.
raspiBackup - Support for Raspberry Compute Module 4 and NVMe
- Details
- Category: raspiBackup
-
Also available:
- Hits: 8104
I just got a CM4 donated with 1GB main memory, 32GB eMMC and 128 GB NVMe. Thank you very much to the donator!
CM4 was already supported by raspiBackup but only running from a SD card, eMMC or USB boot. It's already possible to use NVMe when it's provided in an USB plug because it's exposed as a normal disk as /dev/sdx but there was no way to have NVMe plugged in in the PCI lane exposed as /dev/nvme. Now I fortunately was able to add this support to raspiBackup. This support is available now in release 0.6.8.
Read more: raspiBackup - Support for Raspberry Compute Module 4 and NVMe
raspiBackup - How can I install and test the Beta version?
- Details
- Category: raspiBackup
-
Also available:
- Hits: 5340
From time to time there will be a new raspiBackup version be created which includes new features, enhancements and bug fixes. This version will go though an automated regession test which tests the main backup- and restorefunction. Next all new features, enhancements and bug fixes will be tested again manually even they were tested during development. Now the existing version will be published as beta. Everybody will get notified with a smiley :D in the eMail subject and a dedicated message wll inform about the beta availability. Now every raspibackup user can test the new beta version and to create a problem record if an issue is discovered. It's not possible to test all possible system environment configurations. Thus everybody who tests the beta will help to make sure there will no error been introduced in the new version.
Next page describes how to install the beta, how to uninstall the beta and revert to the previous version and how to create a problem record.
Read more: raspiBackup - How can I install and test the Beta version?
Page 2 of 4