Implement a sanitize rule for syncthing
This commit is contained in:
parent
060aa14df3
commit
911d236c84
@ -66,6 +66,13 @@
|
|||||||
src: Pictures/Cyberpunk 2077
|
src: Pictures/Cyberpunk 2077
|
||||||
dest: Pictures/Screenshots/Vidya/Cyberpunk 2077
|
dest: Pictures/Screenshots/Vidya/Cyberpunk 2077
|
||||||
tags: [ cron ]
|
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:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user