I have a LAMP server setup. I have the source folder in my desktop which I can edit without 'sudo'ing. Then, I sync the files to var/www using sudo rsync. I gave the folders in var/www necessary permissions (770 for the mentioned folder, since www-data is added to root group, and apache has to write to this directory, that is upload directory). It works well. But, when I restart the computer, files in the upload folder in var/www disappears. I cannot understand what is happening.
drwxrwxr-x 2 root www-data 4096 Dec 15 08:26 uploaded_files
my folder permissions look like this.
EDIT: The files disappear some time after the upload.
I'm just confused like hell.
Any help will be appreciated. I'm a newbie in linux file, folder permission btw.