Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up automatic expiry for SMB file drop box.
- Loading branch information
Stephan Sokolow
authored and
Stephan Sokolow
committed
Apr 24, 2016
1 parent
833caab
commit 63abddf
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
for X in /srv/inbound/outbound/FOR_* /srv/inbound/Stuff\ to\ Print; do | ||
find "$X" -ctime +30 -exec rm -rf {} \+ 2>&1 | grep -v 'No such file or directory' | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters