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

Borg 2.0 #132

Open
modem7 opened this issue Jun 26, 2022 · 5 comments
Open

Borg 2.0 #132

modem7 opened this issue Jun 26, 2022 · 5 comments
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@modem7
Copy link
Member

modem7 commented Jun 26, 2022

Putting this issue here so we can keep visibility in case something breaks once it's released.

Version 2.0.0a2 (2022-06-26)

Compatibility notes:

this is a major “breaking” release that is not compatible with existing repos.

You can use “borg transfer” to transfer archives from borg 1.1/1.2 repos to a new borg 2.0 repo, but it will need some time and space.

https://borgbackup.readthedocs.io/en/2.0.0a2/changes.html#version-2-0-0a2-2022-06-26

@grantbevis grantbevis self-assigned this Feb 5, 2023
@grantbevis grantbevis added the dependencies Pull requests that update a dependency file label Feb 5, 2023
@witten
Copy link
Collaborator

witten commented Jun 20, 2023

borgmatic already supports Borg 2, but the big challenge for most docker-borgmatic users will be transferring their old Borg 1.x repo to 2.x: https://torsion.org/borgmatic/docs/how-to/upgrade/#borg-1.2-to-2.0

I don't see any reason why that shouldn't be possible from within a container though.

@hugalafutro
Copy link

I wanted to try to transfer to v2 repo, but the borg inside the container is 1.2.4 or is there an image with borg 2 inside?

pi@pi-docker:~/docker/borgmatic $ docker compose exec -it borgmatic borgmatic --version
1.7.14
pi@pi-docker:~/docker/borgmatic $ docker compose exec -it borgmatic borgmatic borg -V
borg 1.2.4

@witten
Copy link
Collaborator

witten commented Jun 20, 2023

I don't think there's currently an image with Borg 2 inside. If you wanted to just do that for testing purposes, you could probably run the existing image and then temporarily upgrade it to Borg 2. E.g., exec into the container and install Borg 2 with pip, changing borgmatic's local_path option as necessary to use it. Of course, this would only be temporary, and you'd lose Borg 2 when the container restarted. But it could be good enough for testing stuff out.

@hugalafutro
Copy link

@witten Thanks, I thought so. I wouldn't mind trying out the upgrade process, but don't find it feasible if I'd have to upgrade borg inside the container every rebuild too. It's not that I need it or anything isn't working, I just like tinkering with stuff.

@witten
Copy link
Collaborator

witten commented Jun 21, 2023

Totally understood. Note that 2.0 at this point is not recommended for production use, so it'll probably be a little while before it appears in the Docker container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

4 participants