hello
i want to Clear Logs file automatic in /opt/traccar/logs/
i dont understand how to use this commands
cat > /etc/cron.daily/traccar-clear-logs << EOF
#!/bin/sh
find /opt/traccar/logs/ -mtime +3 -type f -delete
EOF
chmod +x /etc/cron.daily/traccar-clear-logs
please give me the way step by step
You just need to copy paste it into the command line.
I do it but the file is not deleted
The issue is not related to traccar.
You need to learn a bit more about linux console commands.
you need to change the permissions of the directory By :
sudo chmod 777 /opt/traccar/logs/
hello
i want to Clear Logs file automatic in /opt/traccar/logs/
i dont understand how to use this commands
please give me the way step by step