Interesting question

Discussion in 'Site & Server Administration' started by prilep, Nov 26, 2008.

  1. #1
    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 :)
     
    prilep, Nov 26, 2008 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    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
     
    Bohra, Nov 27, 2008 IP
  3. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #3
    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 :eek:

    Jay
     
    jayshah, Nov 27, 2008 IP
  4. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #4
    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.
     
    harrisunderwork, Nov 27, 2008 IP
  5. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #5
    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
     
    jayshah, Nov 28, 2008 IP
    Bohra likes this.
  6. cipals15

    cipals15 Well-Known Member

    Messages:
    1,085
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    100
    #6
    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.
     
    cipals15, Nov 28, 2008 IP