You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If borg could run directly on a normal Windows installation (via cmd, not requiring cygwin or other major runtime support), it could be useful for windows machines that do not have cygwin installed.
Notes:
Doing a native windows port is likely quite some work over a longer time, due to all the differences between windows and UNIX-like operating systems. Whether it can be done in a pretty (regarding to source code changes) and good working (regarding to practical use) way has to be seen.
Because of that, it will have to live in a separate branch of the repository at first (which should be regularly updated from master branch, so it is kept up-to-date and without potential merge conflicts).
At some time in the future, that branch might or might not get merged into master.
Thanks to @Anakonda for doing the native windows port!
The basics work, but it will for sure need more testing, fixes and enhancements - please file tickets for anything that shows up (make sure you mention "windows branch" for problems only happening in that branch).
I would like to try borg under Windows.
I am aware of the standalone installer using cygwin. But for the project, I think testing of the native windows port would be useful, don't you think?
Is there any documentation on the native port? E.g. what python packages are needed.
For another project I use cx_freeze to freeze to create an executable. That would certainly help on this respect. What do you think?
no, it does not run. It is missing ctypes.wintypes:
from .windows import acl_get, acl_set
File "src\borg\platform\windows.pyx", line 13, in init borg.platform.windows (src/borg/platform\windows.c:8460)
ImportError: No module named 'ctypes.wintypes'
I suggest that we forget the windows branch for now, it is no way mergeable with master, instead start making (very) small changes to master.
Maybe get pip install -e . to pass as first commit.
@ThomasWaldmann@henfri
I am getting the FD exception problem, is there any way to fix that? like what ssh params can I change, and can this be fixed in windows/borg by any means?
Maybe someone from the BorgBase/Vorta team would be interested in getting backups restorable on windows?
i'm sure it'd be a nice peace of mind knowing that i can simply borrow a friends windows machine and get to my data. I understand that this can be currently solved with WSL or a remote backup location (on a server), but i believe my point still stands.
I re-activated CI testing for windows in master branch after fixing some issues that made it fail. master branch will become borg 2 at some time in the future, but is not yet ready for production.
Reacted by Mario, KraXen72, spider_under_your_bed, quicktrick and Robin Modisch
Activity
[-]Native Windows port?[/-][+]Native Windows port[/+]ThomasWaldmann commentedon Apr 19, 2016
See PR #947 (has been merged into "windows" branch now).
Superceded by: #986 (has been merged into "windows" branch now).
ThomasWaldmann commentedon Apr 25, 2016
Thanks to @Anakonda for doing the native windows port!
The basics work, but it will for sure need more testing, fixes and enhancements - please file tickets for anything that shows up (make sure you mention "windows branch" for problems only happening in that branch).
henfri commentedon Aug 27, 2017
Hello,
I would like to try borg under Windows.
I am aware of the standalone installer using cygwin. But for the project, I think testing of the native windows port would be useful, don't you think?
Is there any documentation on the native port? E.g. what python packages are needed.
For another project I use cx_freeze to freeze to create an executable. That would certainly help on this respect. What do you think?
Regards,
Hendrik
henfri commentedon Aug 27, 2017
Hello,
I just saw that an executable is already created here:
https://github.com/borgbackup/borg/blob/windows/deployment/windows/buildwin32.py
That's good. Before deploying borg as native executable, an installer would be even better, but for testing, it is not needed I think.
If you would like people to test the native windows, I think that a compiled version of this branch would be needed. Is that available from somewhere?
Regards,
Hendrik
Anakonda commentedon Aug 27, 2017
@henfri latest version is available here https://ci.appveyor.com/project/borgbackup/borg/build/artifacts
Neurrone commentedon Aug 27, 2017
@Anakonda is this a native windows port, or does it install sigwin?
henfri commentedon Aug 27, 2017
Cygwin, you mean?
By the looks it is the native built and does not need cygwin
Greetings,
Hendrik
Neurrone commentedon Aug 27, 2017
@henfri thanks. Will try it, curious to see how it stacks up against rclone and duplicati
henfri commentedon Aug 27, 2017
Hello,
no, it does not run. It is missing ctypes.wintypes:
Greetings,
Hendrik
Anakonda commentedon Aug 27, 2017
Here is working one: https://www.dropbox.com/s/tolumpufc179j77/borg.zip?dl=0
I will do pull request later.
49 remaining items
ThomasWaldmann commentedon Mar 21, 2019
the code should be reviewed by somebody with a clue of win32 api.
if it is unclear to @Anakonda what's unclean/unfocussed, i can point at it, but it might be rather obvious.
henfri commentedon Mar 21, 2019
Hello,
I reviewed this one:
126921d
which is the initial commit.
What I see that could be unclean is:
Apart from that, I do not see anything that could break functionality on non win32 platforms and nothing that would be 'dirty'.
Greetings,
Hendrik
Anakonda commentedon Mar 21, 2019
I suggest that we forget the windows branch for now, it is no way mergeable with master, instead start making (very) small changes to master.
Maybe get
pip install -e .to pass as first commit.luke-jr commentedon Apr 24, 2019
Can AppVeyor be restarted to regenerate the Windows builds? Presumably it's better than nothing?
TheRealAlexV commentedon Oct 4, 2021
Would also like to see a windows version
z11k commentedon Nov 18, 2022
+1 for win build
maxkratz commentedon May 26, 2023
+1
SpiderUnderUrBed commentedon Jul 21, 2024
+1
SpiderUnderUrBed commentedon Jul 24, 2024
@ThomasWaldmann @henfri
I am getting the FD exception problem, is there any way to fix that? like what ssh params can I change, and can this be fixed in windows/borg by any means?
KraXen72 commentedon Dec 21, 2025
+1 for a windows build, at least restoring/browsing backups would be awesome! Thanks!
ThomasWaldmann commentedon Dec 23, 2025
A windows build needs a windows maintainer (and there currently is no active developer doing this).
A good start would be working on fixing / reactivating windows CI (that's also where the build happens, after the tests).
KraXen72 commentedon Dec 24, 2025
Maybe someone from the BorgBase/Vorta team would be interested in getting backups restorable on windows?
i'm sure it'd be a nice peace of mind knowing that i can simply borrow a friends windows machine and get to my data. I understand that this can be currently solved with WSL or a remote backup location (on a server), but i believe my point still stands.
ThomasWaldmann commentedon Jan 28, 2026
@KraXen72 you need to file that in the vorta issue tracker.
ThomasWaldmann commentedon Jan 28, 2026
Update for this ticket:
I re-activated CI testing for windows in master branch after fixing some issues that made it fail. master branch will become borg 2 at some time in the future, but is not yet ready for production.
KraXen72 commentedon Jan 28, 2026
Thanks for the updates, and thanks for maintaining borg. good luck with ongoing borg2 development!