##################################################### # # Default configuration file for raspiBackup.sh # # (C) 2013,2022 framp at linux-tips-and-tricks dot de # # For more details about options visit # http://www.linux-tips-and-tricks.de/de/raspibackup/#parameter # # $Date: 2022-05-08 20:04:07 +0200$ # $Sha1: 5549123$ # ##################################################### # do not change following line VERSION_CONFIG="0.1.6" ##################################################### # # Note: # # 0 turns an option off # 1 turns an option on # ##################################################### # path to store the backupfile DEFAULT_BACKUPPATH="/backup" # type of backup: dd, tar or rsync DEFAULT_BACKUPTYPE="dd" # zip tar or dd backup DEFAULT_ZIP_BACKUP=0 # dd backup will save space used by partitions only DEFAULT_DD_BACKUP_SAVE_USED_PARTITIONS_ONLY=0 # how many backups to keep (1-n). Will be ignored if Smartrecycle is used. DEFAULT_KEEPBACKUPS=3 # how many backups to keep of the specific backup type. If zero DEFAULT_KEEPBACKUPS is used DEFAULT_KEEPBACKUPS_DD=0 DEFAULT_KEEPBACKUPS_DDZ=0 DEFAULT_KEEPBACKUPS_TAR=0 DEFAULT_KEEPBACKUPS_TGZ=0 DEFAULT_KEEPBACKUPS_RSYNC=0 # Smart recycle DEFAULT_SMART_RECYCLE=0 # Smart recycle dryrun DEFAULT_SMART_RECYCLE_DRYRUN=1 # Smart recycle parameters (daily, weekly, monthly and yearly) DEFAULT_SMART_RECYCLE_OPTIONS="7 4 12 1" # commands to stop services before backup separated by && DEFAULT_STOPSERVICES="" # commands to start services after backup separated by && DEFAULT_STARTSERVICES="" # commands to execute before services are stopped separated by && DEFAULT_BEFORE_STOPSERVICES="" # commands to execute when services were started again separated by && DEFAULT_AFTER_STARTSERVICES="" # email to send completion status DEFAULT_EMAIL="" # Sender emailadress used with ssmtp and msmtp DEFAULT_SENDER_EMAIL="" # Additional parameters for email program (optional) DEFAULT_EMAIL_PARMS="" # mailprogram DEFAULT_MAIL_PROGRAM="mail" # Telegram token DEFAULT_TELEGRAM_TOKEN="" # Telegram target chatid DEFAULT_TELEGRAM_CHATID="" # Telegram notifications to send. S(uccess), F(ailure), M(essages as file), m(essages as text) DEFAULT_TELEGRAM_NOTIFICATIONS="F" # Send eMail and/or Telegram notification when backup starts DEFAULT_NOTIFY_START=0 # Send email only in case of errors. Use with care ! DEFAULT_MAIL_ON_ERROR_ONLY=0 # msg level (0 = minimal, 1 = detailed) DEFAULT_MSG_LEVEL=0 # Colorize console output (C) and/or email (M) DEFAULT_COLORING="CM" # HTML color and VT100 color for warning and error, yellow red DEFAULT_COLOR_CODES=("#FF8000 33" "#FF0000 31") # eMail coloring (SUBJECT or OPTION) DEFAULT_EMAIL_COLORING="SUBJECT" # restore device DEFAULT_RESTORE_DEVICE="" # Default verbose log DEFAULT_VERBOSE=0 # skip check for remote mount of backup path DEFAULT_SKIPLOCALCHECK=0 # blocksize used for dd DEFAULT_DD_BLOCKSIZE=1M # addition parms used for dd DEFAULT_DD_PARMS="" # exclude list # NOTE: The statement has to be a valid exclude statement for the used backuptool # Prefix all excludes with --exclude. Example "--exclude /home/pi/.ssh --exclude /root/.ssh" DEFAULT_EXCLUDE_LIST="" # notify in email if there is an updated script version available DEFAULT_NOTIFY_UPDATE=1 # backup extensions to call DEFAULT_EXTENSIONS="" # restore extensions to call DEFAULT_RESTORE_EXTENSIONS="" # language (DE, EN, FI, ZH or FR) DEFAULT_LANGUAGE="" # hosts which will get the updated backup script with parm -y - non pwd access with keys has to be enabled # Example: "root@raspberrypi root@fhem root@openhab root@magicmirror" DEFAULT_DEPLOYMENT_HOSTS="" # Don't ask for restore confirmation for this device. Use with care ! DEFAULT_YES_NO_RESTORE_DEVICE="" # Resize root filesystem during restore DEFAULT_RESIZE_ROOTFS=1 # Use hardlinks for partitionbootfiles DEFAULT_LINK_BOOTPARTITIONFILES=0 # save boot partition with tar DEFAULT_TAR_BOOT_PARTITION_ENABLED=0 # Versions not to generated deprecated messages, separated with commas DEFAULT_SKIP_DEPRECATED="" # report uuid DEFAULT_USE_UUID=1 # Check for bad blocks when formating restore device (Will take a long time) DEFAULT_CHECK_FOR_BAD_BLOCKS=0 # add timestamps in front of messages DEFAULT_TIMESTAMPS=0 # add system status in debug log DEFAULT_SYSTEMSTATUS=0 # reboot system at end of backup DEFAULT_REBOOT_SYSTEM=0 # Restoretest reminder interval (unit: months) DEFAULT_RESTORE_REMINDER_INTERVAL=6 # Number of times to remind to test restore DEFAULT_RESTORE_REMINDER_REPEAT=3 # Options for partitionoriented mode DEFAULT_PARTITIONBASED_BACKUP="0" DEFAULT_PARTITIONS_TO_BACKUP="1 2" # Name of backup partition to dynamically mount (e.g. /dev/sda1 or /backup), should be empty to disable dynamic mount DEFAULT_DYNAMIC_MOUNT=""