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