Skip to content

Commit

Permalink
Add more gocryptfs details
Browse files Browse the repository at this point in the history
  • Loading branch information
daviewales committed Nov 29, 2024
1 parent 4cb3638 commit c6202bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def get_snapshots_mountpoint(self, profile_id=None, mode=None, tmp_mount=False):
if mode == 'local':
return self.get_snapshots_path(profile_id)

# else: ssh/local_encfs/ssh_encfs
# else: ssh/local_encfs/ssh_encfs/local_gocryptfs

symlink = f'{profile_id}_{os.getpid()}'
if tmp_mount:
Expand Down Expand Up @@ -427,7 +427,7 @@ def set_snapshots_path(self, value, profile_id=None):

def snapshotsMode(self, profile_id=None):
#? Use mode (or backend) for this snapshot. Look at 'man backintime'
#? section 'Modes'.;local|local_encfs|ssh|ssh_encfs
#? section 'Modes'.;local|local_encfs|ssh|ssh_encfs|local_gocryptfs
return self.profileStrValue('snapshots.mode', 'local', profile_id)

def setSnapshotsMode(self, value, profile_id = None):
Expand Down Expand Up @@ -1594,6 +1594,8 @@ def _cron_line(self, profile_id):
dest_path = self.snapshotsFullPath(profile_id)
elif mode == 'local_encfs':
dest_path = self.localEncfsPath(profile_id)
elif mode == 'local_gocryptfs':
dest_path = self.localGocryptfsPath(profile_id)
else:
logger.error(
f"Udev scheduling doesn't work with mode {mode}", self)
Expand Down

0 comments on commit c6202bd

Please sign in to comment.