🚧 Adjusted mkbackup and created mkrestore scripts

This commit is contained in:
tomit4 2026-06-21 20:52:53 -07:00
parent bef3e7e410
commit 31ee3ee801
2 changed files with 13 additions and 1 deletions

12
scripts/mkrestore Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
BACKUP_DIR="$1"
if [ -z "$BACKUP_DIR" ]; then
echo "Usage: $0 gentoo_backup_YYYY-MM-DD"
exit 1
fi
doas rsync -aHAXS --numeric-ids --delete --info=progress2 \
"/mnt/media/usb-drive/${BACKUP_DIR}/" \
/