Skip to content

Commit

Permalink
schedule a daily full minidlna re-scan
Browse files Browse the repository at this point in the history
  • Loading branch information
sebschlicht committed Aug 26, 2023
1 parent b8dd7ef commit a3d067f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ If you use tags to selectively enable features, you only have to adapt their var

Check existing files for available variables and their meaning.

## Scheduled Jobs

| Interval | Description | Active when feature selected |
| --------------- | --------------------------- | ---------------------------- |
| daily at 2 a.m. | backup user data | backup |
| daily at 5 a.m. | rescan miniDLNA directories | dlna |

## Port Forwarding

> **_Note:_** Instead of forwarding relevant ports from your router to the NAS, strongly consider using a VPN to avoid any unencrypted file transfer (e.g. Samba) via internet.
Expand Down
8 changes: 8 additions & 0 deletions roles/minidlna/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
name: minidlna
groups: "{{ nas.user.name }}"

- name: schedule daily re-scan
cron:
user: minidlna
name: reload minidlna for full re-scan
job: /usr/sbin/minidlnad -R
hour: 5
minute: 0

- name: configure firewall
ufw:
rule: allow
Expand Down

0 comments on commit a3d067f

Please sign in to comment.