Displaying 1 result from an estimated 1 matches for "samba_public_delete".
2008 May 14
1
HowTo clear a share using smbclient ?
Good Evening,
I was wondering if anyone knows how to clear a share on a server using
a command line interface ?
Basically I have a [public] share that I would like cleared down every
night, I've worked out that
smbclient //apps-srv/public -N -c "del *" >
/var/log/samba_public_delete.log 2>&1
seems to go most of the way to doing what I want - however it doesn't
delete subdirectories. Is there any easy way to accomplish this ?
I prefer the idea of running this rather than a 'rm -rf' from the
command line as I can script this and as it's a public share t...