I have a script that makes automatic backups of all my sites and stores them in my /backupfolder/. Now the folder is chmoded to 777 so my system can store the backups in there. But what if I password protected that directory from cPanel? Will it still be able to write the files to the folder? Thanks! - Prilep
Since its a server operation i guess .htacess passwords dont affect them.. It could also depend on how cron is set.. if cron is opening a url to take the backups than it wont work but ifs done to the direct file it should work
Absolutely. .htaccess is only an Apache directive, it won't affect the Linux filesystem at all. Everyone can read + write to that folder, and steal your backups Jay
Why don't u randomize the name of the backup folder and make changes to script. It would be virtually impossible for someone to access the backup.
Because unless you change the files + folders properly, you can still read everyone elses files using a simple PHP script. Once you have their directory list, you know what their backup folder is again. Jay
Backups should be placed on locations or same servers. Purpose of back-up: 1. To have a protected copy that will be used in case your running/used copy is malfunctioning. If backup is on server A and running/used copy is in server A and server A was burned or have been damaged. Backup didn't achieve what it is supposed to do.