Skip to content

Commit 4e605e5

Browse files
committed
v0.9.1
1 parent 7b1e45f commit 4e605e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2151
-486
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cache/
2+
logs/
3+
scripts/deprecated/

Install-Script.cmd

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@echo off
2+
setlocal enabledelayedexpansion
3+
4+
:: Check if running with admin rights
5+
openfiles >nul 2>&1
6+
if '%errorlevel%' NEQ '0' (
7+
echo Requesting administrative privileges...
8+
powershell -Command "Start-Process cmd -ArgumentList '/c %~f0 %*' -Verb RunAs"
9+
exit /b
10+
)
11+
12+
:: Running with administrative privileges
13+
14+
set "psScriptPath=%~dp0"
15+
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%psScriptPath%scripts/Main-Script.ps1"
16+
17+
pause
18+
endlocal
19+
exit /b

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,32 @@
22

33
This script is designed to set up the Kopia service on a Windows 10 64-bit system.
44

5+
Kopia version used: [v0.16.1](https://github.com/kopia/kopia/releases/tag/v0.16.1)
6+
(Due to a bug in version v0.17.0 when using VSS in root drive directories [#3482](https://github.com/kopia/kopia/issues/3842))
7+
58
## Script Overview
69

7-
- **Platform Tested**: Windows 10 64-bit
8-
- **Service Account**: Runs using the user's Windows account
9-
- **Certificate**: Includes a Root CA certificate
10-
- **User Requirement**: Knowledge of installing Rclone and administrative rights to install the service
10+
This script installs the Kopia application as a Windows service with the following features:
11+
12+
- Specify any Windows account to run the Kopia service.
13+
- Configures Windows Firewall to allow Kopia traffic.
14+
- Sets up SSL certificates for secure connections.
15+
- Configures login credentials for the Web UI.
16+
- Sets up repository with Rclone for flexible storage options.
1117

1218
## Third-Party Tools
1319

1420
The script utilizes the following third-party tools, which are included with the script package. However, you can download them from their respective websites if needed:
1521

1622
- **OpenSSL (Win-64 3.3.1)** [OpenSSL](https://wiki.overbyte.eu/wiki/index.php/ICS_Download#Download_OpenSSL_Binaries)
1723
- **Rclone (v1.67.0)** [Rclone](https://rclone.org/downloads/)
18-
- **Shawl (v1.5.0)** [Shawl](https://github.com/mtkennerly/shawl)
24+
- **WinSW (v2.12.0)** [WinSW](https://github.com/winsw/winsw)
1925
- **htpasswd (Apache 2.4.62-240718 Win64)** [htpasswd](https://www.apachelounge.com/download/)
20-
- **PrivMan (v1.0.2)** [PrivMan](https://github.com/Bill-Stewart/PrivMan)
2126

2227
## Installation Instructions
2328

2429
1. **Download and Extract the Script Package**: Download the entire code from the GitHub repository and extract it.
25-
2. **Run the Installation Script**: Execute the `kopia_windows_service_installation.cmd` file.
30+
2. **Run the Installation Script**: Execute the `Install-Script.cmd` file.
2631

2732
## Notes
2833
- For best results, place the Kopia folder in the root directory, such as `C:/Kopia` or `D:/Kopia`.

configs/.htpasswd

Lines changed: 0 additions & 1 deletion
This file was deleted.

configs/.kopiaignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.tmp
2+
*.temp
3+
~$*
4+
*~
5+
.~*#
6+
$RECYCLE.BIN
7+
RECYCLE.BIN
8+
/System\ Volume\ Information

configs/certs/openssl-ca.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[ req ]
2+
distinguished_name = kopia_local
3+
x509_extensions = v3_ca
4+
prompt = no
5+
6+
[ kopia_local ]
7+
C = US
8+
ST = California
9+
L = San Francisco
10+
O = Kopia Server
11+
OU = My Division
12+
CN = Root CA for Kopia Server
13+
#emailAddress = info@example.com
14+
15+
[ v3_ca ]
16+
basicConstraints = CA:TRUE
17+
keyUsage = digitalSignature, keyCertSign, cRLSign, keyEncipherment

configs/certs/openssl-domain.conf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[ req ]
2+
distinguished_name = kopia_local
3+
x509_extensions = v3_req
4+
prompt = no
5+
6+
[ kopia_local ]
7+
C = US
8+
ST = California
9+
L = San Francisco
10+
O = Kopia Server
11+
OU = My Division
12+
CN = Root CA for Kopia Server
13+
#emailAddress = info@example.com
14+
15+
[ v3_req ]
16+
authorityKeyIdentifier=keyid,issuer
17+
basicConstraints=CA:FALSE
18+
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment

configs/certs/openssl-domain.ext

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
authorityKeyIdentifier=keyid,issuer
2+
basicConstraints=CA:FALSE
3+
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
4+
subjectAltName = @alt_names
5+
6+
[ alt_names ]
7+
DNS.1 = 192.168.165.145
8+
DNS.2 = kopia.local
9+
DNS.3 = www.kopia.local

configs/rclone.conf

Lines changed: 0 additions & 2 deletions
This file was deleted.

configs/tls.conf

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)