Jump to content

log rotation and backup of karma.log


aernan

Recommended Posts

  • 2 weeks later...

ok I looked around. There is not a classic crontab setup. There is a single file in /etc/crontab/root and it's empty. I tried putting some stuff into it but I'm not getting any response.

SHELL=/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usb/usr/bin:/usb/usr/sbin
HOME=/
# minute (0-59),
# | hour (0-23),
# | | day of the month (1-31),
# | | | month of the year (1-12),
# | | | | day of the week (0-6 with 0=Sunday).
# | | | | | commands"
# run-parts
10 * * * * root /bin/date > /tmp/test.txt
Also I noticed that the system clock is reset every time the device is powered up. So that means the files would get overwritten using the /root/karma.log$(date) technique.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...