-
-
Notifications
You must be signed in to change notification settings - Fork 743
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
borg vs borg2 - Name should change #7140
Comments
Yes, I agree that the borg 2.x cli name should be Not sure if distributions should also switch their borg 1.x packages to a borg1 cli command name, but guess that would be best so one can have a symlink The remaining question is the mechanism implementing that cli command name and who implements that. Here i think this should be a distribution-specific mechanism like the "alternatives" system of debian/ubuntu or a manually managed symlink. Thus, either the dist package maintainer or the sysadmin would implement this. For the software and documentation in the borg github repo and the python pypi package, I would like to keep the "borg" cli command name and also the |
@dagelf BTW, iirc this was discussed before - maybe you can find the old ticket and link it from here? |
Also reference discussion about this started by @elho in the announcement thread: #6602 (comment)_ (I had to dig a bit, forgive me for opening a new ticket - but I think this warrants discussion separately) This is a tricky thing. I can understand the desire to keep the name consistent or the same, especially from the documentation perspective. I am approaching this from a systems administrator and end-user perspective. Changing the functionality of a command, without changing the name of the command, can cause immense frustration and misunderstanding - not to mention a flood of new tickets about unexpected behavior from uninformed users. It seems I would strongly urge us to either adopt a new naming eg The problem is, that, people learn commands, and are very slow to learn new commands - not to mention the ecosystem of dependent apps that has already evolved. Some users may never migrate - archives are usually made to be kept for years, if not decades. Trying to access your archives in 10 years' time, finding that the whole world has shifted underneath you, could be a most frustrating experience, which can be prevented with just a simple decision here and now. I will dig for a roadmap now to see what has been discussed and planned already. There is no shortage of commands in existing packaging that has had almost no updates in a decade. Borg could be like that, when the party can shift to |
Our docs are versioned and automatically created from tags in the github repo (see the version selector at the lower right), so users are expected to read the docs version matching their borg version. They don't always do that (or do not read the docs at all), but that is not our fault. :-) |
To keep archives for longer, users are advised to create new borg 2 repos and then use borg transfer to copy all their existing archives into it. That avoids the issue that you would have to use an old (and by then unsupported) borg 1 version to access backups in some years in the future. |
The problem is that many people create archives and then forget about it. They might only get the message to migrate 10 years from now. |
Guess they would notice by the time when dists start to remove the borg 1.x package (see the python 2 to 3 migration). |
The Python migration was one of the biggest disasters in modern software IMHO. Ironically, because of the pervasive workarounds such as virtualenv, and versioning the Debian packaging python as |
And what about the wasted man-hours spent on maintaining the backward compatibility you propose? |
Maybe we could stick closer to the "name change" topic here. |
The major issue at hand is the new cli - as there are numerous frontends and automations that will break in all kinds of colourful ways. Hence my proposal to keep the new name
I think this is very much on topic. And the ability to do that using current packaging mechanisms without causing confusion, is what I want to help preserve. My proposal is to side step this issue by not maintaining backward compatibility (assuming it is a burden) but instead just stick to a new name Something that is not clear to me is whether the old binary can be packaged along with the new one, in the same package... that way no new packaging needs to be done anywhere. The only potential downside I see is that if a security issue does crop up in the old one, it might affect distribution of the new one, as they would be in the same package. |
To add, it leaves the option open to upgrade To add... I volunteer. 😄 I don't see it as wasted man-hours if the balance is less wasted effort on the whole. |
I don't think anyone would like to package borg 1.x into the same package as borg 2. That is just bad for maintenance and updates and just creates additional complexity and work compared to having 2 packages that live side-by-side and can be updated independently. Guess this applies to (linux and other) dist packages as well as to the fat-binary packages provided by us. BTW, the whole point of making a (breaking) major release is getting rid of legacy code, but there is another ticket that already described why that path was chosen. |
The other discussion, linked above, seems to center on two issues:
If the CLI stays the same, there should be no need for this ticket's whole discussion. So that brings up the question - how about that if As for introducing borg2 as a new package, it is easier to maintain one package than two... and we don't want people to keep installing the old version - hence the package name should stay People who only get introduced to borg now, won't have any confusion because new defaults can ensure that. |
@dagelf You're late to the party: the old cli argparsing code is already gone and won't come back. the old crypto code is still there for migration reasons, but will be gone in 2.1. Also, sorry for being repetitive: the point of the borg 2 breaking release is to get rid of a lot of legacy code, that includes the legacy cli argparsing. I won't write a cli-compatibility wrapper. |
Also, I am closing this ticket now as it seems to be impossible to stay on-topic. |
If an application makes breaking changes, its best to change the name. Reason being that a lot of dependent automations and wrappers will break. I propose
borg2
. Both old and new can be shipped in the same package. Borg2 can eventually replace borg, but just with a wrapper that makes the command line interface compatible so that old wrappers can continue working.The text was updated successfully, but these errors were encountered: