Create a file backup-daily.sh :
#!/bin/bash # Requires restoretools pkg DISK_TO_BACKUP="/dev/sda" BACKUP_LOCATION="/mnt/backup_server/disk_image_$(date +%Y%m%d).img" LOG_FILE="/var/log/disk_backup.log" restoretools pkg
| Tool | Function | | :--- | :--- | | | Data cloning from failing drives with a log file. | | testdisk | Partition recovery and undeleting boot sectors. | | photorec | File carving for lost photos, documents, and videos. | | gddrescue | GNU enhanced version with smarter retry logic. | | sfdisk / sgdisk | Scriptable partition table manipulation. | | ntfs-3g | Read/write access to NTFS drives. | | Custom scripts | quick-scan.sh , full-backup.sh , verify-disk.sh | Create a file backup-daily
echo "Backup complete at $(date)" >> $LOG_FILE restoretools pkg