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

Make all profiles removable including the "main profile" #1371

Open
jwbrase opened this issue Nov 22, 2022 · 5 comments
Open

Make all profiles removable including the "main profile" #1371

jwbrase opened this issue Nov 22, 2022 · 5 comments
Labels
Discussion decision or consensus needed Feature requests a new feature Low relevant, but not urgent Qt Qt bugs, code or features

Comments

@jwbrase
Copy link

jwbrase commented Nov 22, 2022

I recently moved my backups from a locally attached external drive to a TrueNAS box on the LAN. I ran both for a while, and once I was sure that the remote backups were working, I removed the external drive. Unfortunately, it seems that BackInTime does not allow the first profile created to be removed (I guess to prevent people from removing all of their profiles by accident?). I've disabled it, and set the backup directory to a dummy directory (otherwise any time I try to change the new profile, the "main" profile generates an error dialog about a missing backup directory and doesn't allow the profile settings dialog to be closed), but I'd like to be able to get rid of it completely.

@buhtz
Copy link
Member

buhtz commented Nov 22, 2022

Dear Jon,
thank you for your report.

This is a known shortcoming of BIT that the "main profile" is undeletable. And I'm not aware of a good workaround for that.

What do you mean by "disabled" the profile? IMHO there shouldn't be an error message when you

  • set the profile to "Local"
  • deactivate the time scheduling
  • and give it an existing folder

Did you tried that?

Maybe related to #1032

@buhtz buhtz added Bug Low relevant, but not urgent labels Nov 22, 2022
@jwbrase
Copy link
Author

jwbrase commented Nov 22, 2022

"Disabled" means I turned off scheduling. I've already set the backup directory to an existing directory that's excluded from the backup scope. The main profile isn't doing anything at the moment and I've resolved the issue with not having an existing backup folder. Mostly at this point I guess I'm just asking for a workaround and making a feature request for some better way of handling this.

As for the workaround, you say there's no good workaround; Could one in principle hand edit config files or something to change what's considered the "main" profile? If not, I guess I'll keep the profile around, but it would be nice to be able to clean it up.

As for ways that BIT could handle this better, I guess it depends on exactly why the main profile is unremovable. If it's a safety feature to prevent the user from doing stupid things, it doesn't prevent the user's most important profile from being removed if their most important is not their first, so I'm not sure it actually makes things all that much safer. If the application needs at least one profile to exist at all times for some reason, maybe have some way of designating a new main profile?

@buhtz
Copy link
Member

buhtz commented Nov 22, 2022

I agree with you. The current situation is not a good solution and there is IMHO no good reason to keep the main profile.

We will keep this as a feature request. But as far as I can see this won't get fixed in the near future because of Issues with higher priority.

My suggestions for fix would be

  • BIT should allow to delete each profile including the last one.
  • Starting BIT again it should act like it does when starting the first time: Forcing to setup a profile.
  • By default BIT should select the last opened profile in the list.
    • This will make problems (error messages) when there is a SSH profile with unavailable remote.
    • When this happen while opening BIT should give the error message dialog but also improve it with a list of all other available profiles that can be opened as an alternative.

@buhtz buhtz added Qt Qt bugs, code or features Feature requests a new feature Discussion decision or consensus needed and removed Bug labels Nov 22, 2022
@buhtz buhtz changed the title Can't remove defunct main profile Make all profiles removable including the "main profile" Nov 22, 2022
@aryoda
Copy link
Contributor

aryoda commented Nov 22, 2022

Could one in principle hand edit config files or something to change what's considered the "main" profile?

Yes, make a backup of the config file ~/.config/backintime/config then edit it and remove all lines starting with "profile1.".

After that take the highest "profile" number from the config file and do a global replace of eg. profile5. with profile1..

This effectively makes profile 5 to profile 1...

@aryoda
Copy link
Contributor

aryoda commented Nov 22, 2022

And let me add: I would also be able to rename the default profile ("main profile" is not very helpful)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion decision or consensus needed Feature requests a new feature Low relevant, but not urgent Qt Qt bugs, code or features
Projects
None yet
Development

No branches or pull requests

3 participants