From 84f753fdc63d694b62766b2a7c49f1be71a03fb3 Mon Sep 17 00:00:00 2001 From: mudhorn Date: Mon, 25 Aug 2025 12:07:58 -0700 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6c1ea71..d600a08 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ cd aredn nano aredn_sync.sh # set ROOT, LOG, NEW_URL # 3. Make it executable -chmod +x aredn_sync.sh +install -m 755 aredn_sync.sh ~/.local/bin/ # 4. Test once manually (Below assumes you placed it in the ~/.local/bin folder). ~/.local/bin/aredn_sync.sh @@ -24,7 +24,7 @@ chmod +x aredn_sync.sh # 5. Add cron (every 4 hours, as local user part of the docker group) crontab -e # add this line: -0 */4 * * * ~/.local/bin/sync.sh >> ~/.local/logs/aredn.log 2>&1 +0 */4 * * * ~/.local/bin/aredn_sync.sh >> ~/.local/logs/aredn.log 2>&1 # 6. Add logrotate rule sudo tee /etc/logrotate.d/aredn-sync <<'EOF' @@ -54,7 +54,7 @@ Done ✅ — your mirror will now stay up to date automatically. Replace --- ## ⚙️ Variables to Edit -At the top of `sync.sh`, adjust these for your environment: +At the top of `aredn_sync.sh`, adjust these for your environment: ```bash ROOT="$HOME//aredn" # mirror root @@ -72,7 +72,7 @@ Replace any with the correct path (e.g. "$HOME/**docker/fileserver/files To keep your mirror current, run the script daily: ```cron -0 0 * * * ~/aredn/sync.sh >> ~/.local/logs/aredn.log 2>&1 +0 0 * * * ~/.local/bin/aredn_sync.sh >> ~/.local/logs/aredn.log 2>&1 ``` ---