mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-22 08:21:04 +01:00
Left optimation hint
This commit is contained in:
parent
8bc6bf209f
commit
48fab870ce
@ -42,5 +42,9 @@ docker run --rm -v volume-name:/recover/ -v ~/backup/:/backup/ "kevinveenbirkenb
|
|||||||
|
|
||||||
Restart the container.
|
Restart the container.
|
||||||
|
|
||||||
|
## Optimation
|
||||||
|
This setup script is not optimized yet for performance. Please optimized this script for performance if you want to use it in a professional environment.
|
||||||
|
|
||||||
## More information
|
## More information
|
||||||
See https://blog.ssdnodes.com/blog/docker-backup-volumes/.
|
- https://blog.ssdnodes.com/blog/docker-backup-volumes/
|
||||||
|
- https://www.baculasystems.com/blog/docker-backup-containers/
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# @see https://www.freedesktop.org/software/systemd/man/machine-id.html
|
|
||||||
backup_time="$(date '+%Y%m%d%H%M%S')";
|
backup_time="$(date '+%Y%m%d%H%M%S')";
|
||||||
backups_folder="/Backups/";
|
backups_folder="/Backups/";
|
||||||
for docker_container_name in $(docker ps --format '{{.Names}}');
|
for docker_container_name in $(docker ps --format '{{.Names}}');
|
||||||
|
Loading…
Reference in New Issue
Block a user