In general using the installer is the fastest method to install raspiBackup. The installer also can be used to install raspiBackup with it's default configuration via the commandline. If you want to install raspiBackup manually execute the following steps:

An already existing configuration file of raspiBackup (/usr/local/etc/raspiBackup.conf) and an already existing version of the raspiBackup script (/usr/local/bin/raspiBackup.sh) will be saved in the corresponding directories by the installation script. Don't forget to read the FAQ page

Prerequisite: Logged in as user pi in his home directory

  1. Execute one of the following commands on your Raspberry to download and install raspiBackup. Upgrade from any version to the actual version is also possible. Backup copies of the script and the config file are created. But an update to the actual raspiBackup version is much easier by just using option -U. Don't forget to read the FAQ page.
    1. raspiBackup.sh will be installed in /usr/local/bin and a configuration wizzard is used for the most important configuration parameters and /usr/local/etc/raspiBackup.conf will be updated accordingly. Now raspiBackup can be started just by passing the backupDirectory.
      curl -sSLO https://www.linux-tips-and-tricks.de/raspiBackupInstall.sh && sudo bash raspiBackupInstall.sh
    2. raspiBackup.sh will be installed in /usr/local/bin. In addition a standardconfigurationfile will be installed in /usr/local/etc/raspiBackup.conf. Comments are written in the configured system language of the Raspberry. The config file has to be updated manually.
      curl -sSLO https://www.linux-tips-and-tricks.de/raspiBackupInstall.sh && sudo bash raspiBackupInstall.sh -c
    3. raspiBackup.sh will be installed in /usr/local/bin. In addition a standardconfigurationfile will be installed in /usr/local/etc/raspiBackup.conf. Comments are written in English. The config file has to be updated manually.
      curl -sSLO https://www.linux-tips-and-tricks.de/raspiBackupInstall.sh && sudo bash raspiBackupInstall.sh -c -l EN
  2. raspiBackup can also be manually downloaded from following location with your browser or by executing following commands. raspiBackup.sh should be copied into /usr/local/bin and raspiBackup.conf should be copied into /usr/local/etc. The config file has to be updated manually.
    curl -sSLO https://www.linux-tips-and-tricks.de/raspiBackup.sh
    curl -sSL https://www.linux-tips-and-tricks.de/downloads/raspibackup-en-conf/download > raspiBackup.conf
  3. To enable automatic backup
    1. Change sample cron file /etc/cron.d/raspiBackup. Just remove # in the last line. Then a backup will be created every Sunday at 5 am.
    2. Add the following line
      0 5  * * 0  /usr/local/bin/raspiBackup.sh -p /backup -t tar -k 4 -e This email address is being protected from spambots. You need JavaScript enabled to view it.  
      with
      sudo crontab -e
      in crontab and then every Sunday at 5 am a tar backup will be created in directory /backup and a notification eMail will be sent to This email address is being protected from spambots. You need JavaScript enabled to view it..

      Note: If the file /etc/crontab is changed directly the following line has to be added:

      0 5  * * 0 root /usr/local/bin/raspiBackup.sh -t tar -k 4 -e This email address is being protected from spambots. You need JavaScript enabled to view it.  /backup
  4. Finally a restore of the backup should be practiced and tested to get familiar with the procedure and to test the backup. It's very uggly if you need the backup and detect it's corrupt or data is missing.
Add comment

Note

Spam comments are purged and not published. Review is done manually and therefore it usually takes between some hours and one day until a comment will be published.