$ rdiff-backup --list-increments /tmp/ttt
Fatal Error: Previous backup to /tmp/ttt seems to have failed.
Rerun rdiff-backup with --check-destination-dir option to revert directory to state before unsuccessful session.
$ echo $?
1
$ rdiff-backup --list-increment-sizes /tmp/ttt
Time Size Cumulative size
-----------------------------------------------------------------------------
[..list of increments and their sizes...]
$ echo $?
0
I never had the opportunity to test the change owsla mentioned in the first comment, but it should be trivial to test the behavior independently on a destination dir that has had an interrupted write to it.
This currently still happens in hardy:
$ rdiff-backup --list-increments /tmp/ttt destination- dir option to revert directory to state before unsuccessful session. increment- sizes /tmp/ttt ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Fatal Error: Previous backup to /tmp/ttt seems to have failed.
Rerun rdiff-backup with --check-
$ echo $?
1
$ rdiff-backup --list-
Time Size Cumulative size
-------
[..list of increments and their sizes...]
$ echo $?
0
I never had the opportunity to test the change owsla mentioned in the first comment, but it should be trivial to test the behavior independently on a destination dir that has had an interrupted write to it.