Semplice script per svuotare le home degli utenti. Molto rischioso da usare, di solito si usa prima di un sync da un altro server.
#!/bin/bash
cd /media/sda1/dati
for X in $(find -mindepth 1 -maxdepth 1); do
rm -rf /media/sda1/dati/$X/
done
This entry was posted
on Monday, October 25th, 2010 at 09:21 and is filed under Server.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.