Implement a sanitize rule for syncthing
This commit is contained in:
parent
060aa14df3
commit
911d236c84
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user