Add more directories to sort out, make the jobs run in parallel at 5AM
This commit is contained in:
parent
58196e3f24
commit
e93124e556
@ -46,13 +46,25 @@
|
||||
cron:
|
||||
name: "{{ item.name }}"
|
||||
minute: 0
|
||||
hour: "*"
|
||||
job: "pgrep rsync || rsync -avHS --remove-source-files '/data/syncthing/data/{{ item.src }}/' '/data/syncthing/data/{{ item.dest }}/' && rmdir '/data/syncthing/data/{{ item.src }}' "
|
||||
hour: 5
|
||||
job: "rsync -avHS --remove-source-files '/data/syncthing/data/{{ item.src }}/' '/data/syncthing/data/{{ item.dest }}/' && rmdir '/data/syncthing/data/{{ item.src }}' "
|
||||
with_items:
|
||||
# This works around a bug in my Android app lol
|
||||
- name: husky test workaround
|
||||
src: Pictures/Husky Test
|
||||
dest: Pictures/Unsorted/Husky
|
||||
- name: move messaging to unsorted
|
||||
src: Pictures/Messaging
|
||||
dest: Pictures/Unsorted/Messaging
|
||||
- name: move discord to unsorted
|
||||
src: Pictures/Discord
|
||||
dest: Pictures/Unsorted/Discord
|
||||
- name: move camera roll to unsorted
|
||||
src: Pictures/Camera Roll
|
||||
dest: Pictures/Unsorted/Camera Roll
|
||||
- name: move cp2077 to screenshots
|
||||
src: Pictures/Cyberpunk 2077
|
||||
dest: Pictures/Unsorted/Screenshots/Vidya/Cyberpunk 2077
|
||||
tags: [ cron ]
|
||||
roles:
|
||||
- role: backup
|
||||
|
Loading…
Reference in New Issue
Block a user