I'm trying to compress a folder (
$time is the current date.
This is what I have:
cd /var/www && sudo tar -czf ~/www_backups $time"
I am completely lost and I've been at this for hours now. Not sure if
-czf is correct. I simply want to copy all of the content in
/var/www into a
$time.tar file, and I want to maintain the file permissions for all of the files. Can anyone help me out?