Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

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 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/raspiBackup/raspiBackupInstallUI.sh && sudo bash raspiBackupInstallUI.sh -i
  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/raspiBackup.sh
    curl -sSL https://www.linux-tips-and-tricks.de/raspiBackup/raspiBackup_en.conf > 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 ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. Comments with string http are rejected with message You have no rights to use this tag
  2. All comments are reviewed by hand and thus it usually takes one day until a comment will be published.