From 0a08ebe9c78d462d501f7891d78dccf3a3b439f0 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 9 Apr 2022 16:18:53 -0700 Subject: [PATCH] Add documentation for handling NAS-dependent services --- nas/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nas/README.md b/nas/README.md index 9f52e5c..1a7feb2 100644 --- a/nas/README.md +++ b/nas/README.md @@ -152,4 +152,16 @@ TODO, not yet designed. | Text | server/calibre-web | | Torrenting | seedbox/EMP, seedbox/GGN, seedbox/MAM, seedbox/PUB | | Media | server/autopirate, server/plex | -| Backups | server/cron | \ No newline at end of file +| Backups | server/cron | + +## Offlining dependent services +- Text: `cd ~/homelab/server/config/calibre-web && docker-compose down ; sudo umount /mnt/nas/calibre` +- Torrenting: `cd ~/homelab/seedbox/config/deluge/ ; for DIR in emp ggn mam pub; do cd ./$DIR && docker-compose down && cd ../ ; done ; sudo umount /mnt/torrenting` +- Media: `cd ~/homelab/server/config/autopirate && docker-compose down ; cd ~/homelab/server/config/plex && docker-compose down ; sudo umount /mnt/nas/media` +- Backups: This cron job runs once per day at midnight. If possible, perform maintenance between runs. If not possible, comment out the jobs via `crontab -e`. + +## Online dependent services +- Text: `sudo mount /mnt/nas/calibre && cd ~/homelab/server/config/calibre-web && docker-compose up -d` +- Torrenting: `sudo mount /mnt/torrenting && cd ~/homelab/seedbox/config/deluge/ ; for DIR in emp ggn mam pub; do cd ./$DIR && docker-compose up -d && cd ../ ; done` +- Media: `sudo mount /mnt/nas/media && cd ~/homelab/server/config/autopirate && docker-compose up -d ; cd ~/homelab/server/config/plex && docker-compose up -d` +- Backups: Uncomment the commented lines with `crontab -e`. \ No newline at end of file