Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Add Windows support #297

Closed
lucassz opened this issue Jun 1, 2019 · 24 comments
Closed

Add Windows support #297

lucassz opened this issue Jun 1, 2019 · 24 comments
Labels
status:planning For large features, plan it out before implementation

Comments

@lucassz
Copy link

lucassz commented Jun 1, 2019

Documentation mentions that Vorta could support Windows, but that Borg doesn't. Apparently now it does -- I'm not sure if the documentation just needs to be changed, or if any small changes need to be made in order for Vorta to support Windows.

@Hofer-Julian
Copy link
Collaborator

To me this reads more like there are people currently working on it. Not at all like borg already supports Windows.

@ThomasWaldmann
Copy link
Collaborator

Yeah, as @Hofer-Julian says.

borg does not support running under native windows yet, but it works within cygwin or WSL.

@FabianKnapp
Copy link

Yeah, as @Hofer-Julian says.

borg does not support running under native windows yet, but it works within cygwin or WSL.

So is it possible to backup files on windows NTFS partition within WSL?

@m3nu
Copy link
Contributor

m3nu commented Jun 14, 2019

Should be possible, as Windows makes all drives accessible under /mnt/c, etc.

It's on my todo-list to actually test it but from what I saw on Borg's Github it should work.

Found some more details here: https://superuser.com/questions/1114341/windows-10-ubuntu-bash-shell-how-do-i-mount-other-windows-drives

@erotavlasme
Copy link

Borg 1.0.11 already works well under windows 10 64 bit. It is available via chocolatey package.

@Ramblurr
Copy link

I've done some basic tests of Borg on windows 10 via chocolatey, and it works fine. Next step is definitely getting a Vorta windows build, then I can retire the other kludgy backup systems my family uses.

@ThomasWaldmann
Copy link
Collaborator

Seems like the chocolatey borg is still at 1.0.10, which is rather old.

The borg collective is still working on native windows support (not released yet).

Current borg releases (preferably 1.1.latest) can be used with cygwin or wsl on windows machines.

@m3nu
Copy link
Contributor

m3nu commented May 28, 2020

Some changes related to this: https://www.theverge.com/2020/5/19/21263377/microsoft-windows-10-linux-gui-apps-gpu-acceleration-wsl-features

@m3nu m3nu added the status:planning For large features, plan it out before implementation label May 28, 2020
@jucor
Copy link

jucor commented Sep 14, 2020

@Ramblurr , do you know who's the maintainer of the Borg package on chocolatey, please? Could you tag them here, maybe?

@JBlond
Copy link

JBlond commented Sep 17, 2020

@jucor
Copy link

jucor commented Sep 17, 2020

Thanks @JBlond . Sorry, it was right there on the page, I should have seen that. I've contacted the maintainer, pointing him to this thread, see if he wants to chime in and/or update his package.

@ojaksch
Copy link

ojaksch commented Sep 18, 2020

I'm the maintainer of borgbackup for chocolatey but not coder of it, which is Billy Charlton.
I did the choco package because of "better old than nothing" - we should whether wait for an official version of borgbackup for windows or ask Billy/someone to update it. Would be glad to update choco's package for you Windows users.

@m3nu
Copy link
Contributor

m3nu commented Sep 18, 2020

Cool. With a working Borg.exe, we can probably package Vorta (which is written in Qt) for Windows eventually.

@m3nu
Copy link
Contributor

m3nu commented Sep 18, 2020

You're still updating this repo @billyc?

@jucor
Copy link

jucor commented Sep 18, 2020

@DanielSzoska is this something you still develop? Daniel forked @billyc's unofficial windows releases and updated them, I believe using cygwin as @ThomasWaldmann mentioned.

@JBlond
Copy link

JBlond commented Sep 21, 2020

@jucor The base for that build is cygwin
The most recent working version that I found is https://github.com/engelant/borg-cygwin
@engelant are you still working on this?

@ojaksch
Copy link

ojaksch commented Sep 22, 2020

As long as there's no (current) native Windows port of borg, what about using the original and current version of borg with Microsoft's WSL1 (or 2) and a Linux distrubution of your choice? It doesn't matter if one installs a big cygwin or a big "real" Linux setup imho to gain access of borg power.
I'm a Linux only user and am out of Microsoft's scope since years, so that's my thoughts only.

@m3nu
Copy link
Contributor

m3nu commented Sep 22, 2020

A fellow user – Christer – has shared the following instructions on setting up WSL2 by email and gave permission to use them for instructions, if we ever need to. I haven't found a good place for them yet, but if someone can validate, we can put it in the Vorta docs somewhere or even the Borg docs.

A few things worth noting, if you're gonna be testing and/or trying to turn this into anything others can use:

  • "wsl --set-default-version 2" will only work in build 19041 onward. If you run an earlier build than that, either skip that command (and keep running on WSL 1 - the command will just fail with an error), or upgrade Win10 first (build 19041 should now be available to anyone, the latest as of writing, since I believe May).

  • The order of the above wsl command is assumed, since I haven't yet had a chance to test this with WSL 2 out of the box, only upgraded WSL 1. If you're coming from WSL 1 as I did, you can instead retroactively do this to upgrade an existing Debian VM:

  • wsl --set-version Debian 2
  • (optional for any future installs) wsl --set-default-version 2
  • Enabling the features can supposedly also be done sans PowerShell (though I haven't tried myself):

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

(and similar for /featurename:Microsoft-Windows-Subsystem-Linux I imagine)
If you also found some alternative way to specify, download and install an image, then you could drop the PowerShell dependency. The Invoke-WebRequest call was just the closest thing I could find to Wget/cURL as I was writing my notes.

  • I've diligently followed official instructions to reboot after each of the first two steps, though it's quite possible that all steps can be completed with a single reboot at the end (see the /norestart flag in the non-PS example), in which case this could be scripted easily. Seems worth testing.

@Ramblurr
Copy link

FWIW I'm all for a WSL solution if that's what we need at first to get Vorta on windows.

But a non-WSL solution is much more valuable. It will open Vorta and Borg to a huge number of workstations whose users and admins can't use WSL

@Eeems
Copy link

Eeems commented Feb 1, 2021

So the website is a little misleading. The install page has a large buttons saying windows, which you have to click to find out that it's not supported yet. The page says that support is coming soon, but I see that this issue is in a planning state, and has been in that state since June 2019.

What is the current status of this, and should the website be made clearer on what the state (or lack thereof) of windows support is for Vorta?

@m3nu
Copy link
Contributor

m3nu commented Feb 2, 2021

Vorta would run OK on Windows, but we would need a Windows binary to use. Those exist, but aren't updated regularly.

@m3nu
Copy link
Contributor

m3nu commented Feb 2, 2021

There are also people running it on WSL2. Someone even sent me instructions for it. Maybe we put those on the Windows page for now?

@Eeems
Copy link

Eeems commented Feb 2, 2021

I managed to get it running in WSL as well (https://eeems.website/running-vorta-on-windows/). Likely having some sort of instructions linked would be good. That said, still having an actual answer on when/if native windows support is in the works would be ideal.

@m3nu
Copy link
Contributor

m3nu commented Feb 2, 2021

Updated the docs and also included your blog post and some more details added by Christer a few months ago. He used Debian instead of Ubuntu.

If someone can update those instructions, let's do it in the docs repo.

@m3nu m3nu closed this as completed Feb 2, 2021
@m3nu m3nu reopened this Feb 2, 2021
@m3nu m3nu closed this as completed Feb 15, 2021
@borgbase borgbase locked and limited conversation to collaborators Feb 15, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
status:planning For large features, plan it out before implementation
Projects
None yet
Development

No branches or pull requests