Vanguard media stack: ingest, copyparty, Syncthing, normalize sweep, Authentik, Jellyfin + Vanguard Metadata plugin, MariaDB, Gitea, bot runtime
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
10
bin/trash-purge.sh
Executable file
10
bin/trash-purge.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Delete dumped nights older than 3 days; drop empty dirs; clean stale markers.
|
||||
set -uo pipefail
|
||||
TRASH=/srv/media/trash
|
||||
MARK=/srv/media/.markers
|
||||
[[ -d $TRASH ]] || exit 0
|
||||
find "$TRASH" -mindepth 1 -type f -mtime +3 -delete
|
||||
find "$TRASH" -mindepth 1 -type d -empty -delete
|
||||
find "$MARK" -type f -mtime +30 -delete 2>/dev/null
|
||||
echo "$(date '+%F %T') trash purge done"
|
||||
Reference in New Issue
Block a user