Update README.md
This commit is contained in:
parent
84f753fdc6
commit
beee5f7c05
|
@ -21,10 +21,10 @@ install -m 755 aredn_sync.sh ~/.local/bin/
|
||||||
# 4. Test once manually (Below assumes you placed it in the ~/.local/bin folder).
|
# 4. Test once manually (Below assumes you placed it in the ~/.local/bin folder).
|
||||||
~/.local/bin/aredn_sync.sh
|
~/.local/bin/aredn_sync.sh
|
||||||
|
|
||||||
# 5. Add cron (every 4 hours, as local user part of the docker group)
|
# 5. Add cron (this example is daily)
|
||||||
crontab -e
|
crontab -e
|
||||||
# add this line:
|
# add this line:
|
||||||
0 */4 * * * ~/.local/bin/aredn_sync.sh >> ~/.local/logs/aredn.log 2>&1
|
0 0 * * * ~/.local/bin/aredn_sync.sh >> ~/.local/logs/aredn.log 2>&1
|
||||||
|
|
||||||
# 6. Add logrotate rule
|
# 6. Add logrotate rule
|
||||||
sudo tee /etc/logrotate.d/aredn-sync <<'EOF'
|
sudo tee /etc/logrotate.d/aredn-sync <<'EOF'
|
||||||
|
|
Loading…
Reference in a new issue