mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
Add Docker backup updater and include /opt/docker backups
This commit is contained in:
1 parent
5f7ca9020f
commit
a17056a25c
6 files changed
+108
-10
No files matched your search
@@ -7,13 +7,16 @@ This directory contains the Docker backup scripts for this repository.
|
||||
- `docker-backup.sh` backs up Docker data to the NAS share.
|
||||
- `setup_docker-backup.sh` installs the backup script and cron job on a new system.
|
||||
- `correct_docker-backup.sh` repairs older installs and rewrites the cron job.
|
||||
- `update_docker-backup.sh` replaces previously installed backup scripts on a system and refreshes the cron job.
|
||||
|
||||
## Usage
|
||||
- Review the scripts before running them.
|
||||
- Run the install or correction scripts as `root`.
|
||||
- Run `update_docker-backup.sh` as `root` on existing systems to replace older installed copies.
|
||||
- Adjust paths if the target system uses different Docker or NAS mount locations.
|
||||
|
||||
## Notes
|
||||
- Backups are written to `/mnt/naspublic/docker-backup/{hostname}/{month}/{date}/`.
|
||||
- The backup set includes `/root/docker`, `/opt/docker`, `/var/lib/docker/volumes`, and `/home/traver/docker`.
|
||||
- The backup job runs every 3 hours.
|
||||
- Backups older than 14 days are removed automatically.
|
||||
Reference in new issue
Block a user