add user/samba restore script + yireh and isaac smb shares

This commit is contained in:
2026-04-18 08:23:09 -04:00
parent 1d5dafe352
commit 439e718206
3 changed files with 200 additions and 7 deletions
+5
View File
@@ -46,6 +46,11 @@ RSYNC_OPTS="-a --delete"
rsync $RSYNC_OPTS /opt/argento/ /mnt/backup/argento/ \
|| FAILURES+=("rsync argento")
# Back up samba passdb (binary — holds SMB password hashes, not in /opt/argento)
mkdir -p /mnt/backup/samba-private
rsync -a --delete /var/lib/samba/private/ /mnt/backup/samba-private/ \
|| FAILURES+=("rsync samba passdb")
if [ ${#FAILURES[@]} -gt 0 ]; then
echo "BACKUP FAILED: ${FAILURES[*]}" >&2
exit 1