Implement a sanitize rule for syncthing

This commit is contained in:
Salt 2021-12-15 22:19:05 -06:00
parent 060aa14df3
commit 911d236c84

View File

@ -66,6 +66,13 @@
src: Pictures/Cyberpunk 2077
dest: Pictures/Screenshots/Vidya/Cyberpunk 2077
tags: [ cron ]
- name: assure sanitize cronjob
cron:
name: sanitize name=orig.png
minute: 0
hour: 4
job: 'find /data/syncthing/data/ -type f -iname "*?name=orig.png" | while read line; do mv "$line" "${line%?name=orig.png}"; done'
tags: [ cron ]
roles:
- role: backup
vars: