content:serverbasics:docker-backup
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| content:serverbasics:docker-backup [2025/03/28 20:09] – [Cronjob] obel1x | content:serverbasics:docker-backup [2025/12/06 14:19] (aktuell) – [UserIDs in the Borg-Backups] obel1x | ||
|---|---|---|---|
| Zeile 37: | Zeile 37: | ||
| find "/ | find "/ | ||
| - | # TODO: remove | + | # Remove |
| + | sed -i '/ | ||
| + | |||
| + | # Make Postgres-Backup of Authentik | ||
| + | ../ | ||
| # Copy the file to NC-AIO | # Copy the file to NC-AIO | ||
| Zeile 88: | Zeile 92: | ||
| Frist, create another file in that Directory e.g. / | Frist, create another file in that Directory e.g. / | ||
| - | |||
| < | < | ||
| + | |||
| #!/bin/bash | #!/bin/bash | ||
| cd / | cd / | ||
| Zeile 98: | Zeile 102: | ||
| Use '' | Use '' | ||
| - | < | + | < |
| + | 0 3 * * * / | ||
| </ | </ | ||
| Zeile 104: | Zeile 109: | ||
| Thats all. Make sure, you recieve Mails for this user. | Thats all. Make sure, you recieve Mails for this user. | ||
| - | + | ===== Restore and UserIDs in the Borg-Backups ===== | |
| - | ===== UserIDs in the Borg-Backups ===== | + | |
| Mind, that Borg will store the UID/GID of some file/ | Mind, that Borg will store the UID/GID of some file/ | ||
| - | So you cannot restore the Files on your Host an hope, that this will work. To restore these archives, you need (again) a running Nextcloud- AIO and restore the files from that borg- container, that is included there. | + | So you cannot restore the Files on your Host and hope, that this will work. To restore these archives, you need (again) a running Nextcloud- AIO and restore the files from that borg- container, that is included there. |
| + | < | ||
| + | < | ||
| + | |||
| + | And DO NOT THINK YOU CAN SET USERS MANUALLY LATER on the Hosts Volumes ! → some containers, like FreeIPA do include non-relative symlinks in their data, even pointing to Files on your Host when looking at them from your Host. If you chown them, than HOST SYSTEMFILES will get messed up, maybe rendering your whole Server unusable! | ||
| + | |||
| + | For making restore of Docker- Volumes easy, check out this community-container: | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | This will do the mounts and will make it easy to copy files from borg backup to the volumes. | ||
content/serverbasics/docker-backup.1743188999.txt.gz · Zuletzt geändert: von obel1x
