Add comprehensive backup system and Docker registry push script

This commit is contained in:
Iulian 2025-10-19 11:31:40 +01:00
parent 5490229922
commit ee84c18e90
5 changed files with 297 additions and 0 deletions

21
list-backups.sh Executable file
View 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"