Collection of scripts used for system administration.
GNU General Public License v3.0
9
stars
4
forks
source link
duplicityBackup: A service where the "path [...] either does not exists or is not readable: cannot backup" error occurs is stated as "OK" (backuped) #8
The script test if path to backup exists and are readable: if not an error is reported.
A service where at least one path could not be backup because the path doesn't exists or is not readable should be reported as failed.
During a test I got:
[MSG] 2014-10-03 15:29:51 UTC - --------------------------------------------------------------------------------
[MSG] 2014-10-03 15:29:51 UTC - - Backup File System service "localDisk"
[MSG] 2014-10-03 15:29:51 UTC - ----------
[DEBUG] 2014-10-03 15:29:51 UTC - --- backupFs("localDisk") ---
[DEBUG] 2014-10-03 15:29:51 UTC - List of path to backup
[DEBUG] 2014-10-03 15:29:51 UTC - --- backupPath("localDisk", "/tmp/test-duplicity/fake-fs/etc") ---
[ERROR] 2014-10-03 15:29:51 UTC - Path to backup "/tmp/test-duplicity/fake-fs/etc" either does not exists or is not readable: cannot backup;
[DEBUG] 2014-10-03 15:29:51 UTC - --- backupPath("localDisk", "/tmp/test-duplicity/fake-fs/root/") ---
[ERROR] 2014-10-03 15:29:51 UTC - Path to backup "/tmp/test-duplicity/fake-fs/root" either does not exists or is not readable: cannot backup;
[DEBUG] 2014-10-03 15:29:51 UTC - --- backupPath("localDisk", "/tmp/test-duplicity/fake-fs/var/www") ---
[ERROR] 2014-10-03 15:29:51 UTC - Path to backup "/tmp/test-duplicity/fake-fs/var/www" either does not exists or is not readable: cannot backup;
[DEBUG] 2014-10-03 15:29:51 UTC - --- /backupFs("localDisk") ---
[MSG] 2014-10-03 15:29:51 UTC - Backup File System service "localDisk": OK
[MSG] 2014-10-03 15:29:51 UTC - --------------------------------------------------------------------------------
The script test if path to backup exists and are readable: if not an error is reported.
A service where at least one path could not be backup because the path doesn't exists or is not readable should be reported as failed.
During a test I got:
Service "localDisk" should not be "OK".