vault backup: 2025-01-24 12:03:16

This commit is contained in:
Janik von Rotz committed 2025-01-24 12:03:16 +01:00
1 parent 7080685639
commit d980bb45f6
2 files changed
+3 -15

No files matched your search

@@ -28,16 +28,10 @@ And set the data root:
}
```
Copy the current docker directory to the new directory.
Move the current docker directory to the new directory.
```bash
rsync -aP /var/lib/docker/ /mnt/sdb/docker
```
Rename the old directory.
```bash
sudo mv /var/lib/docker /var/lib/docker.old
sudo mv /var/lib/docker /mnt/sdb/docker
```
Restart the Docker deamon.
@@ -52,9 +46,3 @@ Test if all services work as expected.
docker ps -a
docker info -f '{{ .DockerRootDir}}'
```
If everything is good, remove the old Docker directory.
```bash
sudo rm -rf /var/lib/docker.old
```
+1 -1
View File
@@ -14,7 +14,7 @@ responsible: Janik von Rotz
docker_data_dir: /mnt/sdb/docker
fstab_mounts:
- path: /mnt/sdb
src: /dev/disk/by-id/$DISK_ID
src: /dev/vdb
opts: discard,nofail,defaults
state: mounted
fstype: ext4