Module: LnBackup
- Defined in:
- lib/lnbackup/backup.rb,
lib/lnbackup/version.rb
Defined Under Namespace
Classes: LnBackup
Constant Summary collapse
- CONFIG_D =
'/etc/lnbackup.d/'
- LOG_FILE =
'/var/log/lnbackup'
- STATUS_FILE_PREF =
'/var/log/lnbackup.status'
- PCS_STATUS =
'/var/log/lnbackup-pcs.status'
- LILO_PATH =
'/sbin/lilo'
- BACKUP_OK =
return codes ####
0
- BACKUP_EXISTS =
0 – ok
1
- FAILED_TO_FREE_SPACE =
1 – warning
12
- NO_BACKUP_DIR =
12… – error codes
13
- MOUNT_FAILED =
14
- INVALID_BACKUP =
15
- PRE_COMMAND_FAILED =
16
- POST_COMMAND_FAILED =
17
- FSCK_FAILED =
18
- SMBMOUNT_FAILED =
19
- LNBACKUP_RUNNING =
20
- DEVICE_NOT_FOUND =
21
- PIDFILE_FAILED =
22
- DEVICE_FULL =
when running in –no-delete mode and we run out of disk space
100
- MESSAGES =
{ BACKUP_EXISTS => 'backup already exists', FAILED_TO_FREE_SPACE => 'failed to free space', NO_BACKUP_DIR => 'no backup dir', MOUNT_FAILED => 'mount failed', INVALID_BACKUP => 'invalid backup name', PRE_COMMAND_FAILED => 'pre backup cmd failed', POST_COMMAND_FAILED => 'post backup cmd failed', FSCK_FAILED => 'fsck failed', LNBACKUP_RUNNING => 'lnbackup already running', DEVICE_NOT_FOUND => 'backup device not found', DEVICE_FULL => 'device full', PIDFILE_FAILED => 'failed to create pid/lock file' }
- VERSION =
2.4