Skip to content

Commit

Permalink
Set up automatic expiry for SMB file drop box.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Sokolow authored and Stephan Sokolow committed Apr 24, 2016
1 parent 833caab commit 63abddf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home/bin/purge_outbound.sh
@@ -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
1 change: 1 addition & 0 deletions supplemental/crontab_backup
Expand Up @@ -15,6 +15,7 @@
0 0 * * * rm -f ~/.local/share/applications/wine-extension-*
0 0 * * * rm -f ~/.local/share/icons/hicolor/*/apps/application-x-wine-extension-*
0 0 * * * rm -rf /home/ssokolow/.local/share/applications/wine/Programs
0 0 * * * ~/bin/purge_outbound.sh
0 0 * * * chmod 600 ~/Documents/*.kdbx
0 0 * * * ~/bin/task_skip_daily >/dev/null
1 0 * * * rm -f ~/.xsession-errors{,.old}
Expand Down

0 comments on commit 63abddf

Please sign in to comment.