1
0
Fork 0

Manual backup: 2023-04-06 15:58:32

This commit is contained in:
Alexander Schäferdiek 2023-04-06 15:58:32 +02:00
parent fad7c6f98e
commit dc2beb1e82
5 changed files with 235 additions and 345 deletions

File diff suppressed because it is too large Load diff

View file

@ -5,5 +5,5 @@
"isDesktopOnly": false,
"fundingUrl": "https://ko-fi.com/vinzent",
"js": "main.js",
"version": "2.19.0"
"version": "2.19.1"
}

View file

@ -55,7 +55,9 @@
display: flex;
align-items: center;
justify-content: center;
width: 11px;
}
.git-tools .type[data-type="M"] {
color: orange;
}

View file

@ -4,15 +4,19 @@
"type": "split",
"children": [
{
"id": "7b45702362961067",
"id": "7955a819a6a97999",
"type": "tabs",
"children": [
{
"id": "7e4738fd6ba51aed",
"id": "d102c87988242456",
"type": "leaf",
"state": {
"type": "empty",
"state": {}
"type": "markdown",
"state": {
"file": "KB/Linux/Server/Docker Volume Migration.md",
"mode": "preview",
"source": true
}
}
}
]
@ -65,7 +69,7 @@
}
],
"direction": "horizontal",
"width": 337.5
"width": 280.5
},
"right": {
"id": "899055bb84f9c389",
@ -81,6 +85,7 @@
"state": {
"type": "backlink",
"state": {
"file": "KB/Linux/Server/Docker Volume Migration.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -120,8 +125,12 @@
"templater-obsidian:Templater": false
}
},
"active": "7e4738fd6ba51aed",
"active": "d102c87988242456",
"lastOpenFiles": [
"KB/Linux/Server/Docker Volume Migration.md",
"KB/Linux/Desktop/Tweaks.md",
"KB/Linux/Desktop/Fonts.md",
"KB/Linux/Desktop/Archinstall.md",
"_Templates/Note Template.md",
"README.md",
"KB/Android/ADB Backup.md",
@ -129,8 +138,6 @@
"KB/Linux/Desktop/Audio/EQ.md",
"KB/Linux/Desktop/KDE/KDE.md",
"KB/Linux/Desktop/KDE/KDE Tiling.md",
"KB/Linux/Desktop/Archinstall.md",
"KB/Linux/Desktop/Fonts.md",
"KB/Linux/Desktop/GPG - PGP.md",
"KB/Linux/Desktop/i3.md",
"KB/Linux/Desktop/Steam.md",
@ -138,7 +145,6 @@
"KB/Linux/Desktop/sway.md",
"KB/Linux/Desktop/systemd.md",
"KB/Linux/Desktop/Theming Qt and Gtk.md",
"KB/Linux/Desktop/Tweaks.md",
"KB/Linux/Server/Hetzner/Storagebox.md",
"KB/Linux/Server/Hetzner/Upgrades.md",
"KB/Linux/Server/Bootstrap.md",
@ -146,7 +152,6 @@
"KB/Linux/Server/Domains.md",
"KB/Linux/Server/PostgreSQL.md",
"KB/Linux/Server/Security hardening.md",
"KB/Linux/Server/SSH Guard, iptables.md",
"KB/Linux/Server/Remote unlocking at boot.md"
"KB/Linux/Server/SSH Guard, iptables.md"
]
}

View file

@ -0,0 +1,28 @@
1. Stop existing deployment
2. Create a dedicated named docker volume with `docker volume create target-vol`
3. Copy existing contents
```shell
# copy
docker run -d --rm --name temp -v target-vol:/mnt alpine tail -f /dev/null
docker cp /opt/.../. temp:/mnt
# once finished
docker stop $MIGRATOR_NAME
```
4. Adapt existing deployment
```shell
# dedicated volumes section
volumes:
target-vol:
external: true
# change any mount paths
volumes:
- target-vol:/....
```
5. Adapt any backup scripts which would point to the old data host directory