Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Highly recommended" exclusion patterns in "Manage profiles" GUI dialog should show only missing patterns #1620

Closed
aryoda opened this issue Jan 26, 2024 · 1 comment · Fixed by #1665
Assignees
Labels
Feature requests a new feature GOOD FIRST ISSUE Used by 24pullrequests.com to suggest issues HELP-WANTED Used by 24pullrequests.com to suggest issues

Comments

@aryoda
Copy link
Contributor

aryoda commented Jan 26, 2024

Current status

rsync and therefor BiT do allow to specify "exclude file patterns" for files that shall not be rsynced:

Currently the GUI always shows all recommended (= default) exclusion file patterns:

image

Feature request

It would be more helpful to show only those default exclusions patterns as "highly recommended" that are not already contained in the actual exclusion list.

Relevant code

label = QLabel(_('Highly recommended') + ':', self)
qttools.setFontBold(label)
layout.addWidget(label)
label = QLabel(', '.join(sorted(self.config.DEFAULT_EXCLUDE)), self)
label.setWordWrap(True)
layout.addWidget(label)

# Used when new snapshot profile is created.
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',
'/swapfile',
]

Related to

@aryoda aryoda added Feature requests a new feature GOOD FIRST ISSUE Used by 24pullrequests.com to suggest issues HELP-WANTED Used by 24pullrequests.com to suggest issues labels Jan 26, 2024
@aryoda aryoda changed the title Highly recommended exclusion patterns in "Manage profiles" GUI dialog should show only missing patterns "Highly recommended" exclusion patterns in "Manage profiles" GUI dialog should show only missing patterns Jan 26, 2024
@buhtz buhtz added this to the Upcoming release (1.5.0) milestone Feb 1, 2024
Prakul95 pushed a commit to Prakul95/backintime that referenced this issue Feb 2, 2024
…ich are already excluded in manage profile
@Prakul95
Copy link

Prakul95 commented Feb 2, 2024

#1629 pull request for dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature requests a new feature GOOD FIRST ISSUE Used by 24pullrequests.com to suggest issues HELP-WANTED Used by 24pullrequests.com to suggest issues
Projects
None yet
3 participants