Skip to content

Commit 290c5b2

Browse files
committed
fix bug: stat free space for snapshot folder instead of backintime folder (fixes bit-team#733)
1 parent 3feb913 commit 290c5b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Back In Time
22

33
Version 1.1.21
4+
* fix bug: stat free space for snapshot folder instead of backintime folder (https://github.com/bit-team/backintime/issues/733)
45
* backport bug fix: backintime root crontab doesn't run; missinng line-feed 0x0A on last line (https://github.com/bit-team/backintime/issues/781)
56
* backport bug fix: can't open files with spaces in name (https://github.com/bit-team/backintime/issues/552)
67

common/snapshots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ def _free_space( self, now ):
17071707
if len( snapshots ) <= 1:
17081708
break
17091709

1710-
free_space = self._stat_free_space_local(self.config.get_snapshots_path())
1710+
free_space = self._stat_free_space_local(self.config.get_snapshots_full_path())
17111711

17121712
if free_space is None:
17131713
free_space = self._stat_free_space_ssh()
@@ -1784,7 +1784,7 @@ def _stat_free_space_ssh(self):
17841784
if self.config.get_snapshots_mode() not in ('ssh', 'ssh_encfs'):
17851785
return None
17861786

1787-
snapshots_path_ssh = self.config.get_snapshots_path_ssh()
1787+
snapshots_path_ssh = self.config.get_snapshots_full_path_ssh()
17881788
if not len(snapshots_path_ssh):
17891789
snapshots_path_ssh = './'
17901790
cmd = self.cmd_ssh(['df', snapshots_path_ssh])

0 commit comments

Comments
 (0)