-
Notifications
You must be signed in to change notification settings - Fork 205
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
Exclude BiT files from the backups by default? #1382
Comments
BiT will backup the configuration in an extra step even if it is not included backintime/common/snapshots.py Line 905 in 110d82a
|
TODO: We should test if the existing config file is overwritten if it is contained in the snapshot and the home folder is restored |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
TL;DR: Configuration File Overwrite Behavior in Back In Time
Machine Configuration and Test ProcedureMachine Configuration
Detailed StepsStep 1: Initial Backup Creation
Step 2: Post-Snapshot Modification
Step 3: Restoration Process
ObservationsUpon restoration, the ImplicationsThis behavior poses a risk of unintentional data loss, especially for users who might not expect configuration changes to be overwritten during restoration. Recommendations
ConclusionThe test confirms that Back In Time's current restoration process overwrites files with their snapshot versions, specifically the configuration file. Addressing this through improved warnings, selective restoration options, and better documentation can enhance the tool's usability and reliability. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This actually fits very well here. We should check whether we consider this a bug. |
That was what I had in mind. It is related to the current Issue but an Issue of its own. Hitro147: Do I understand it correct, that the config file was not an entry in the regular "Include" list of that backup? But it was included by default because of the bahvior described by Germar? I am asking because I am not able to reproduce this behavior here. Germar do you remember why this behavior (restoring config files) was introduced? |
The Perhaps ensuring that the entire home directory is included by default in your test setup might help replicate the behavior? |
That's not what Germar was talking about, though. He is referring to a functionality that includes the backintime/common/snapshots.py Line 905 in 110d82a
As I see it, we have established two useful facts:
(Side note: Might the config also live somewhere other than How might we proceed?
I prefer 3. Which is what @aryoda has been proposing right from the start ;) |
Oops! My bad. I totally got the wrong idea. Thanks for clearing that up and helping me see it right 😄 |
Thanks emtiu for your summarize. My apologize I was on the total wrong track here.
I would like to add a number 4 proposal similar to number 3. Don't add the config location to the default exclude. But when the users add new Include entries to the list, BIT should detect if its own config file is involved. In that case the user should get a question-dialog-box with an explanation (BIT config files are included), a warning (overwritten on restore) and a decision (add config files to Exclude list? Yes/No). The dialog should show up directly when the "Add Include" was done. |
I like that. The dialog box could basically say: „Attention: You're including BiT's own config in the snapshots. Please be aware: Restoring from these snapshots to your running system later might overwrite BiT's configuration with an older state, leading to unexpected behavior. If you know what you're doing, you may continue. Otherwise, BiT can add the location of its own configuration from the snapshots for you. You can always adjust this behavior through the Include/Exclude lists.“ Two buttons: „Snapshots should include BiT config“ and „Exclude BiT config from snapshots“. The wording is not great yet: we must be very carfeul to make it understandable and not too complicated. I'll be happy to do later—writing understandable words about complicated things is my profession ;) |
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
the following folders should be excluded too by default (and manually as workaround for older versions of BiT):
Ignoring specific files kept open by BiT would be even better since ignoring the whole folder means that
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
The text was updated successfully, but these errors were encountered: