rmbackup is a shell script that uses rsync to do incremental centralized backups of remote servers. It can be configured by config files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.9 KiB

  1. ## rmbackup.conf
  2. ## Where to look for host configs (default: /usr/local/etc/rmbackup.d)
  3. #CONF_LOCATION="/usr/local/etc/rmbackup.d"
  4. ## Path to the PID file (default: /var/run/rmbackup.pid)
  5. #PID_FILE="/var/run/rmbackup.pid"
  6. ## Format for timstamp that are used to name the backups (default: %Y-%m-%d)
  7. ## Defaults to YYYY-MM-DD. When you set this to include the hours and minutes as well, you'll have more granular backups (e.g. hourly).
  8. #BACKUP_TIMESTAMP_FORMAT="%Y-%m-%d"
  9. ## Path to directory where we should store the logs (default: /var/log)
  10. #LOG_DIR="/var/log"
  11. ## File name for the log file (default: rmbackup.log)
  12. #LOG_FILE="rmbackup.log"
  13. ## Timestamp format that is used for logs (default: %Y-%m-%d %H:%M:%S)
  14. #LOG_DATE_FORMAT="%Y-%m-%d %H:%M:%S"
  15. # Directory where we store the backups. Sub directories are created for every host that will be backed up.
  16. #BACKUPS_DIR="/tank/data/backups"
  17. ## Name that's used for the symlink of the latest backup (default: last)
  18. #LAST="last"
  19. ## Name that's used for the directory of a backup that is in progress (default: inProgress)
  20. #INPROG="inProgress"
  21. ## How many days of backups should we keep in place (default: 14)
  22. #GLOBAL_KEEP_DAYS=14
  23. ## Path to local rsync binary (default: /usr/local/bin/rsync)
  24. #RSYNC_PATH="/usr/local/bin/rsync"
  25. ## Default parameters for rsync (default: --del --quiet). Can be expanded in host configs
  26. #RSYNC_CONF_DEFAULT="--del --quiet"
  27. ## Path to local ssh binary (default: /usr/bin/ssh)
  28. #SSH_PATH="/usr/bin/ssh"
  29. # Default path to the binary that's used for getting more privileges on the remote server like doas or sudo (default: /usr/local/bin/doas)
  30. #REMOTE_PRIVILEGES_PATH="/usr/local/bin/doas"
  31. ## Default path to the rsync binary on the remote server (default: /usr/local/bin/rsync)
  32. #REMOTE_RSYNC_PATH="/usr/local/bin/rsync"
  33. ## Turn on verbose mode (default: false)
  34. #VERBOSE="false"
  35. ## Turn on debug mode (default: false)
  36. #DEBUG="false"