View Full Version : Need CHMOD help please !
phonexpo
13 Feb 2007, 01:27
I run a database back-up using a cron which backs up my forum to a folder on my server everyday. I want to be able to upload to this folder and at the same time not give permission to anyone who viewed the folder via an internet browser.
It this possible?, if so what would the CHMOD number be?
I've tried a few but either the back-up won't run or the folder is viewable via a internet browser.
Thanks in advance.
This may help .. click here (http://www.vbulletin.org/forum/showthread.php?t=94220)
phonexpo
13 Feb 2007, 02:14
Thanks but no, still can't sort it. I set the CHMOD to 770 but it won't work for me.
Analogpoint
13 Feb 2007, 06:25
Chmod it so it's writable by the process that's doing the backup, and password-protect the directory with an .htaccess file. Here's a tool that can help you create the password protection (http://www.analogpoint.com/tools/htaccessauth.php).
I would send your backups to the root folder, or a folder that can't be accessed via WWW.
phonexpo
13 Feb 2007, 12:05
That's a very good idea, I never taught of that. I'll try it out.
Thanks :)
Analogpoint
14 Feb 2007, 21:44
I would send your backups to the root folder, or a folder that can't be accessed via WWW.
That's the best answer.
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.