mirror of
https://github.com/DoTheEvo/selfhosted-apps-docker.git
synced 2026-07-03 14:06:40 +02:00
update
This commit is contained in:
@@ -44,6 +44,6 @@ if exist C:\Windows\System32\Tasks\kopia_backup_schedule (
|
||||
echo.
|
||||
echo --------------------------------------------------------------
|
||||
echo.
|
||||
echo DEPLOYMENT DONE, RUN THE FOLLOWING COMMAND TO INITIALIZE A REPO
|
||||
echo kopia repo create filesystem --path C:\kopia_repo --password aaa
|
||||
echo DEPLOYMENT DONE
|
||||
echo GO READ WHATS WRITTEN IN C:\Kopia\kopia_backup_scipt.ps1
|
||||
pause
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
# Before using this script, initiate the repo
|
||||
# kopia repo create filesystem --path C:\kopia_repo --password aaa
|
||||
|
||||
# useful commands
|
||||
# kopia repo connect filesystem --path C:\kopia_repo -p aaa
|
||||
# kopia snap list -all
|
||||
# kopia mount all K:
|
||||
# mounting should be used as non-admin user, weird windows thing
|
||||
# or one does not see the drive, in that case
|
||||
# net use - shows path that can be pasted to explorer or browser
|
||||
# useful commands:
|
||||
# - kopia repo connect filesystem --path C:\kopia_repo -p aaa
|
||||
# - kopia snap list -all
|
||||
# - kopia mount all K:
|
||||
# mounting should be used as non-admin user, weird windows thing
|
||||
# or one does not see the drive, in that case:
|
||||
# - net use - shows path that can be pasted to explorer or browser
|
||||
# \\127.0.0.1@51295\DavWWWRoot
|
||||
|
||||
# logs location when run as task scheduler
|
||||
# logs location when run by task scheduler as SYSTEM
|
||||
# C:\Windows\System32\config\systemprofile\AppData
|
||||
|
||||
# config
|
||||
# config below
|
||||
# example of $BACKUP_THIS with multiple paths
|
||||
# [array]$BACKUP_THIS = 'C:\Test','C:\Test2','C:\Test3'
|
||||
# - [array]$BACKUP_THIS = 'C:\Test','C:\Test2','C:\Test3'
|
||||
|
||||
$REPOSITORY_PATH = 'C:\kopia_repo'
|
||||
$KOPIA_PASSWORD='aaa'
|
||||
|
||||
+22
-12
@@ -264,18 +264,18 @@ WantedBy=multi-user.target
|
||||
|
||||

|
||||
|
||||
## KopiaUI
|
||||
## KopiaUI in Windows
|
||||
|
||||
While KopiaUI seems like the way to go because of the simple deployment and
|
||||
use, it has a drawback. The way the schedule works, where the user must be
|
||||
logged in for backups to take place is something to be very aware of.<br>
|
||||
|
||||
Another thing is that KopiaUI does not really need guidance here.
|
||||
It just works for any normal user who is always logged in with one account.
|
||||
Othewise KopiaUI does not really need guidance here.
|
||||
It just works for any normal use.
|
||||
|
||||
## Kopia Server in Windows
|
||||
|
||||
Kopia binary is copied in to `C:\Kopia\` and a scheduled task is importet
|
||||
Kopia binary is copied in to `C:\Kopia\` and a scheduled task is imported
|
||||
that start kopia on boot in server mode.
|
||||
In server mode kopia runs in the background, with its web server
|
||||
answering at url: `localhost:51515` where it can be managed.
|
||||
@@ -286,12 +286,12 @@ answering at url: `localhost:51515` where it can be managed.
|
||||
* Removes powershell scripts restriction.
|
||||
* Creates folder `C:\Kopia` and copies files there
|
||||
* Imports a task schedule that will start `C:\Kopia\kopia_server_start.cmd`<br>
|
||||
* Places kopia.url on the current user desktop
|
||||
* check content of `C:\Kopia\kopia_server_start.cmd`<br>
|
||||
* Places `kopia.url` on the current user's desktop
|
||||
* Check content of `C:\Kopia\kopia_server_start.cmd`<br>
|
||||
note or change the credentials, the default: `admin // aaa`
|
||||
* visit in browser `localhost:51515`
|
||||
* setup repo through webgui
|
||||
* setup what to backup and schedule
|
||||
* Visit in browser `localhost:51515`
|
||||
* Setup new repo through webgui.
|
||||
* Setup what to backup and schedule.
|
||||
|
||||
Kopia should now run on boot and be easy to manage through web GUI.<br>
|
||||
Be it creating backup jobs, mounting old snapshots to restore files,
|
||||
@@ -308,8 +308,19 @@ For that look at docker deployment section or in to making changes to the cmd fi
|
||||
|
||||

|
||||
|
||||
This was written before I realiezed I could be using kopia server.<br>
|
||||
At the moment its the only way I know how to make actions work for VSS snapshots.
|
||||
Kopia binary is copied in to `C:\Windows\System32\`
|
||||
and a scheduled task is imported that executes a powershell script
|
||||
`C:\Kopia\kopia_backup_scipt.ps1` at 21:19.
|
||||
The script executes few kopia commands - connects to a repo, backs up stuff,
|
||||
and disconnects.
|
||||
|
||||
Bit more hands on than having a gui, but once setup one can easily get by with
|
||||
two commands: `kopia snap list -all` and `kopia mount all K:`<br>
|
||||
Note that mount command should be executed in non admin terminal. Weird
|
||||
windows thing.
|
||||
|
||||
Also at the moment cli is the only way I know how to make kopia actions work,
|
||||
so that VSS snapshots can be used.
|
||||
|
||||
* [Download this repo](https://github.com/DoTheEvo/selfhosted-apps-docker/archive/refs/heads/master.zip),
|
||||
delete everything except `kopia_cli_deploy_win` folder.
|
||||
@@ -325,7 +336,6 @@ At the moment its the only way I know how to make actions work for VSS snapshots
|
||||
* edit the scheduled task to the prefered time, default is daily at 21:19
|
||||
* run scheduled task manually
|
||||
* check if it worked
|
||||
* `kopia repo status`
|
||||
* `kopia snap list --all`
|
||||
|
||||
### VSS snapshots
|
||||
|
||||
Reference in New Issue
Block a user