# Config file for Super Deluxe SquashFu Backup Express # Show debugging information. This might be useful in the event # you need to troubleshoot. DEBUG=false # Use color in informational output COLOR=true # The base directory where backups will go. # This is the only directory that absolutely needs to be # created by the user. All others will be created as needed # by the actual backup (and inside this root). BKUP_ROOT="/this/is/intentionally/a/bad/path" # Location of the BINS_DIR="${BKUP_ROOT}/.bins" # Mount directories for the union and the squash. SQUASH_MOUNT="${BKUP_ROOT}/ro" UNION_MOUNT="${BKUP_ROOT}/rw" # Cheezy name, important file. This is a catalog of your incrementals. # Bad things will happen if this file is corrupted or lost. BINVENTORY="/var/lib/squashfu.inv" # Filename for the seed generated. You shouldn't need # to change this SEED="${BKUP_ROOT}/$HOSTNAME-seed.sfs" # The minimum number of incrementals Squashfu will maintain. In other # words, if you set this to 10, you will always be able to roll back # 10 backups. MIN_BINS=5 # The maximum number of incremenetals Squashfu will maintain. When this # number is reached, Squashfu will automatically merge the oldest # incrementals until the MIN_BINS is reached. If you set your min and # max to be the same value, Squashfu will recompress after every backup. # Depending on how big your total backup size is, this may not be wise. # Warning: Without recompiling aufs, there is a limit of 127 branches # for an AUFS mount, which means you cannot exceed 127 MAX_BINS. MAX_BINS=10 # Specify the rsync errors which, when encountered, will trigger # squashfu to consider the backup to be invalid, and undo the changes # it has already done. That is -- delete the newly allocated bin and # update the inventory. See rsync's man page for details about the # various exit codes. # DEL_BIN_ON_FAIL=(1 2 3 10 11 12) DEL_BIN_ON_FAIL=(1) # These are the options that are passed directly to rsync. # The -u flag is a necessity, or else incrementals will # not be true incrementals. See 'man rsync' for more info. RSYNC_OPTS=("-Rua" "--delete" "--stats") # Select compression algorithm. # Available options: gzip, lzo, lz4, xz, zstd, lzma # For details, see mksquashfs manpage. COMPRESSION_ALGO="zstd" # Add options for compression algorithm. # For zstd, only compression level is configurable. # For other compression algorithms, see mksquashfs manpage. COMPRESSION_ARGS=("-Xcompression-level" 15) # The following defines what will and won't be backed up. These are # simply Bash arrays and are interpreted as such. INCLUDES=( /home /etc /usr /var ) #end includes EXCLUDES=( /lost+found /var/log ) #end excludes