diff --git a/plinth/modules/backups/errors.py b/plinth/modules/backups/errors.py index 70d4f0601..2792f6741 100644 --- a/plinth/modules/backups/errors.py +++ b/plinth/modules/backups/errors.py @@ -33,3 +33,7 @@ class BorgArchiveDoesNotExist(BorgError): class BorgBusy(BorgError): """Borg could not acquire lock being busy with another operation.""" + + +class BorgNoSpace(BorgError): + """There is not enough space left on the device to perform operation.""" diff --git a/plinth/modules/backups/privileged.py b/plinth/modules/backups/privileged.py index bc3cf6b02..2a8118978 100644 --- a/plinth/modules/backups/privileged.py +++ b/plinth/modules/backups/privileged.py @@ -87,6 +87,11 @@ KNOWN_ERRORS = [ 'message': _('Backup system is busy with another operation.'), 'raise_as': errors.BorgBusy, }, + { + 'errors': ['No space left on device'], + 'message': _('Not enough space left on the disk or remote location.'), + 'raise_as': errors.BorgNoSpace, + }, ]