I wanted to change to the log directory on ubuntu server, and check duplicity log, but I don't know what happened, it seems that all log files and sub-directories have gone missing! This is the command I used when I logged into the server:
sudo su | cd /var/log | cat duplicity.log | grep -i '. errors' | sort | uniq
I suppose I should have replaces first two pipes with &&
. I have several questions, can I restore logs somehow? Will they continue to appear as they usually appear? Will deletion of all the log files create some server problems? Why did this happen?