Add comprehensive backup system and Docker registry push script
This commit is contained in:
parent
5490229922
commit
ee84c18e90
5 changed files with 297 additions and 0 deletions
21
list-backups.sh
Executable file
21
list-backups.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "=========================================="
|
||||
echo "MASINA-DOCK BACKUP LIST"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
|
||||
echo "Complete backups:"
|
||||
ls -lh backups/masina-dock-complete-*.tar.gz 2>/dev/null | awk '{print " " $9 " (" $5 ")"}'
|
||||
echo ""
|
||||
|
||||
echo "Docker image backups:"
|
||||
ls -lh backups/docker-images/*.tar.gz 2>/dev/null | awk '{print " " $9 " (" $5 ")"}'
|
||||
echo ""
|
||||
|
||||
echo "Backup directories:"
|
||||
ls -d backups/backup-* 2>/dev/null | awk '{print " " $1}'
|
||||
echo ""
|
||||
|
||||
TOTAL_SIZE=$(du -sh backups 2>/dev/null | cut -f1)
|
||||
echo "Total backup storage used: $TOTAL_SIZE"
|
||||
Loading…
Add table
Add a link
Reference in a new issue