sysvol.sh —
Questo semplice script serve a mantenere allineata la directory sysvol sul DC di supporto in un dominio AD-DC.
#!/bin/bash
cd /usr/local/samba/var/locks
rsync -vazrHh -A -X –numeric-ids –stats -e ssh root@192.168.2.205:/usr/local/samba/var/locks/sysvol .
exit 0
reso eseguibile lo si mette in cron ogni 5 minuti
*/5 * * * * /usr/local/bin/sysvol.sh >/dev/null 2>&1
Comments are disabled on this post