Hi!
I want to run a cron and compress my /var/log directory every hour to a tar file.. so I can backup that file.
What would happen to the log files the exact moment I run the tar command, will I miss those log lines or would the different softwares running and using /var/log wait, or will the tar be corrupt etc?
I have a busy webserver so it writes to the log files many times every second.
I plan on running
tar -zcf /home/user/file_date.tar /var/log