-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
37 changes: 28 additions & 9 deletions
37
kopia_backup/kopia_server_deploy_service_win/kopia_server_start.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
kopia server start --insecure --config-file=C:\Kopia\repository.config --log-dir=C:\Kopia\Kopia_Logs --address=127.0.0.1:51515 --server-username=admin --server-password=aaa --enable-actions | ||
|
||
:: to have full functinality of kopia server | ||
:: replace the above command with the new one below | ||
:: to have full functinality of a kopia server | ||
:: replace the above command with the one below | ||
:: in it the address was changed to 0.0.0.0 to allow connection over network | ||
:: and tls cert stuff was added to allow server functinality | ||
:: and tls cert stuff was added without which server does not functions | ||
|
||
rem kopia server start --tls-generate-cert --tls-cert-file C:\Kopia\tls_kopia.cert --tls-key-file C:\Kopia\tls_kopia.key --config-file=C:\Kopia\repository.config --log-dir=C:\Kopia\Kopia_Logs --address=0.0.0.0:51515 --server-username=admin --server-password=aaa | ||
:: kopia server start --tls-generate-cert --tls-cert-file C:\Kopia\tls_kopia.cert --tls-key-file C:\Kopia\tls_kopia.key --config-file=C:\Kopia\repository.config --log-dir=C:\Kopia\Kopia_Logs --address=0.0.0.0:51515 --server-username=admin --server-password=aaa | ||
|
||
:: restart the kopia service and check C:\Kopia if the tls_kopia files are there | ||
:: now again edit this file - remove "--tls-generate-cert" part from it | ||
:: restart the kopia service and check C:\Kopia if the tls_kopia files are now there | ||
:: now again edit this file to remove "--tls-generate-cert" part from the command | ||
:: restart the service again | ||
|
||
:: to add user that will be able to backup | ||
:: execute when connected to the repo | ||
rem kopia server user add myuser@mylaptop | ||
:: log in to the webGUI and create a repo | ||
|
||
:: now theres need to add users that will be able to backup to that repo | ||
:: no GUI for that for whatever reason | ||
:: open windows cmd / powershell as admin | ||
:: connect to the repo manually | ||
:: could help going to the webgui > repository > small shell-icon at the bottom | ||
:: click on it and it will show command to execute to get repo status | ||
:: adjust the command to be about adding a user | ||
|
||
:: C:\Kopia\kopia.exe --config-file=C:\Kopia\repository.config server user add myuser@mylaptop | ||
|
||
:: once again restart the kopia service | ||
|
||
:: now finally can go to the client machine | ||
:: Kopia Repository Server | ||
:: give the ip address and port, use https, something like https://10.0.19.95:51515 | ||
:: write random stuff in to "Trusted server certificate fingerprint (SHA256)" | ||
:: kopia on connect attempt will tell what the the real fingerprint is | ||
:: kopy it in to the field and try connect agan | ||
:: can override username/machine name in the advanced section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters