Skip to content

duplicityBackup: A service where the "path [...] either does not exists or is not readable: cannot backup" error occurs is stated as "OK" (backuped)  #8

Description

@C-Duv

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 - --------------------------------------------------------------------------------

Service "localDisk" should not be "OK".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions