Skip to content

Exclude BiT files from the backups by default? #1382

@aryoda

Description

@aryoda

As part of discussions regarding #1003 the idea came on the table if BiT files should be excluded (by default) from backups:

Consider excluding BiT files from the backups

BiT uses rsync and this is not meant to backup all files of the whole system since open files may cause problems.
but users want to to do this anyhow so ignoring BiT files in backups would be a good idea.

From what I see in the code

backintime/common/config.py

Lines 184 to 189 in bff7aeb

HOME_FOLDER = os.path.expanduser('~')
DATA_FOLDER = '.local/share'
CONFIG_FOLDER = '.config'
BIT_FOLDER = 'backintime'
self._DEFAULT_LOCAL_DATA_FOLDER = os.path.join(HOME_FOLDER, DATA_FOLDER, BIT_FOLDER)
self._LOCAL_CONFIG_FOLDER = os.path.join(HOME_FOLDER, CONFIG_FOLDER, BIT_FOLDER)

the following folders should be excluded too by default (and manually as workaround for older versions of BiT):

  • /root/.local/share/backintime
  • /<currentuser>/.local/share/backintime

Ignoring specific files kept open by BiT would be even better since ignoring the whole folder means that

  • the configs (backup profiles) and
  • the user-callback script

are not contained in the backup 😲

This would require to add a positive list of all file names (or extensions) that are uses in the config.py (e.g. worker*.* files).

The default config can be changed here in the source code:

backintime/common/config.py

Lines 132 to 135 in bff7aeb

DEFAULT_EXCLUDE = [ '.gvfs', '.cache/*', '.thumbnails*',
'.local/share/[Tt]rash*', '*.backup*', '*~', '.dropbox*', '/proc/*',
'/sys/*', '/dev/*', '/run/*', '/etc/mtab', '/var/cache/apt/archives/*.deb',
'lost+found/*', '/tmp/*', '/var/tmp/*', '/var/backups/*', '.Private' ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions