19 lines
495 B
Python
19 lines
495 B
Python
"""Constants and exit codes for linux-backuper."""
|
|
|
|
# Exit Codes
|
|
EXIT_SUCCESS = 0
|
|
EXIT_GENERIC_ERROR = 1
|
|
EXIT_PREFLIGHT_FAIL = 2
|
|
EXIT_CORRUPTED = 3
|
|
EXIT_PERM_DENIED = 4
|
|
EXIT_DRY_RUN = 5
|
|
|
|
# Default filesystem locations
|
|
DEFAULT_BACKUP_DIR = "/var/backups/linux-backuper"
|
|
DEFAULT_CONFIG_PATH = "/etc/linux-backuper.json"
|
|
DEFAULT_PID_PATH = "/var/run/linux-backuper.pid"
|
|
DEFAULT_LOG_DIR = "/var/log/linux-backuper"
|
|
|
|
# Minimum free disk space in megabytes for preflight check
|
|
MIN_FREE_DISK_MB = 1024
|