Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Backup configuration options

The following options have to be defined in a configuration file. Most invocation options can be configured there also. See Backup options for more information.



DEFAULT_BEFORE_STOPSERVICES / DEFAULT_AFTER_STARTSERVICES

The commands defined here are executed before or after the backup stopping and starting system services (option -a and -o).

Config optionDefault
DEFAULT_BEFORE_STOPSERVICESnone
DEFAULT_AFTER_STARTSERVICESnone

DEFAULT_DD_BACKUP_SAVE_USED_PARTITIONS_ONLY

With this option, dd backups only the space occupied by defined partitions. This means that a 32GB SD card, for example, which only has an 8GB root partition defined, ther only will be 8GB plus the boot partition size and not 32GB saved. To do this, however, gparted or resize2fs have to be used before to reduce the root partition size, because the root partition usually fills the entire rest of the SD card.

See also FAQ16.

Config optionDefault
DEFAULT_DD_BACKUP_SAVE_USED_PARTITIONS_ONLYnone

Rarely changing boot partition backups are linked with hardlinks to save backup space. Prerequisite: The backup space supports hard links (ext3/ext4 file system).

Config optionStandard
DEFAULT_LINK_BOOTPARTITIONFILESnone

DEFAULT_MAIL_ON_ERROR_ONLY

An eMail notification is only sent in the event of an error.

Exceptions:

In the following cases an email will be sent despite this option:

  1. For every warning message
  2. Notification of the availability of a new release (RBK0080I)
  3. Notification of the availability of a beta (RBK0168I)
  4. Notification to perform a restore test again (RBK0202I)

Note:

If raspiBackup crashes due to exceptional circumstances it may happen that no eMail is sent,

Config optionDefault
DEFAULT_MAIL_ON_ERROR_ONLYnone

DEFAULT_REBOOT_SYSTEM

This option can be used to configure a reboot of the backed up system at the end of the backup.

Note: The services that were stopped before the backup are not restarted. This is unnecessary as they are started anyway when the system is restarted.

Config optionDefault
DEFAULT_REBOOT_SYSTEM0

DEFAULT_RSYNC_BACKUP_ADDITIONAL_OPTIONS

Backup options that can be used for rsync backup in addition to the standard options of raspiBackup.

**Use at your own risk!

Config optionStandard
DEFAULT_RSYNC_BACKUP_ADDITIONAL_OPTIONSnone

DEFAULT_RSYNC_BACKUP_OPTIONS

This can be used to overwrite the rsync default backup options.

**Use at your own risk!

Config optionStandard
DEFAULT_RSYNC_BACKUP_OPTIONS--delete -aHAx

DEFAULT_TAR_BACKUP_OPTIONS

This can be used to overwrite the tar default backup options.

**Use at your own risk!

Config optionStandard
DEFAULT_TAR_BACKUP_OPTIONS-cpi

DEFAULT_RSYNC_BACKUP_OPTION_EXCLUDE_ACLS

Available starting with release 0.7.2

This option can be used to disable the backup of ACLs with rsync. Useful when the backup partition is connected via nfs which doesn't support ACLs.

Config optionStandard
DEFAULT_RSYNC_BACKUP_OPTION_EXCLUDE_ACLS0

DEFAULT_TAR_BACKUP_ADDITIONAL_OPTIONS

Backup options that are used for tar backup in addition to the standard options.

**Use at your own risk!

Config optionStandard
DEFAULT_TAR_BACKUP_ADDITIONAL_OPTIONSnone