I am trying to access the current (active) raw access logs in cPanel through SSH. For that, I found out that the access-logs symlink:
needs to be zipped. Zip is installed on the server but I am unable to zip the access-logs symlink. I have so far tried:
which returns:
I have also tried using the --symlink option of zip but to no avail.
Now I did run a "top -c" whilst having cPanel's file manager zip the access-logs symlink and I saw that it runs the same:
What could be the problem zipping the access-logs via SSH? Is it possible? Am I doing something wrong?
Thank you
Code:
lrwxrwxrwx 1 user user 34 Aug 6 03:00 access-logs -> /usr/local/apache/domlogs/user
Code:
zip -r /home/homeqpig/access-logs-ftw.zip access-logs
Code:
zip warning: name not matched: access-logs
Now I did run a "top -c" whilst having cPanel's file manager zip the access-logs symlink and I saw that it runs the same:
Code:
43097 user 39 19 99.1m 1228 800 R 7.1 0.0 0:00.07 zip -r /home/user/access-logs.zip access-logs
Thank you