1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Being prepared, the best protection? so how?

Discussion in 'Security' started by killafawk, Feb 28, 2007.

  1. #1
    Is there a program you can run that will automaticly save your data on your computer every day or something? so if your site gets hacked and you lose your data then you can just laugh at the hacker and put everything back up? and then fix the problem?
     
    killafawk, Feb 28, 2007 IP
    toby likes this.
  2. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do it easily if you are using a *nix system on your computer with a cron job and a little bash scripting
     
    rootbinbash, Feb 28, 2007 IP
  3. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Yes, agree with rootbinbash, it's a very straightforward practice on *nix boxes. Also, if you don't have the capacity or just don't want to pull down hundreds of MB or several GB per day then also look at snapshot backups with rsync.
     
    ThreeGuineaWatch, Feb 28, 2007 IP
  4. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #4
    can you guys explain more on the rsync? I'm also not sure how does these things work.
     
    toby, Feb 28, 2007 IP
  5. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #5
    well of course toby you can use rysnc 2.(you can find detailed info at man pages or http://www.hmug.org/man/1/rsync.php )But i am an old boy so i use old methods

    First plan what yo want to do.If you want to backup your public_html folder
    you can write a bash script that can login to ssh via root,gzip the whole public_html,rename it to whatever you want,and move it to anywhere yo want (of course you can download it 2,also you can send it to your pc and delete after sending it).You can do a cron job or if you put it to your local.start it can do automatically when you boot your pc..Etc.

    Well i dont like backup servers : )

    EDIT : But dont forget to remove .bash_history (you have to include it to the script),if not when some1 rooted your server,he can also hack your pc easily :D:D cos first 2 things a hacker will do is checkin the users online and .bash_history
     
    rootbinbash, Feb 28, 2007 IP
  6. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Hi,

    rsync is a well documented tool. Just check Google for something like "rsync backup" and you'll be overwhelmed with info. gzipping an archive and dragging it across the Internet is all very well for small amounts of data but impractical when you have more than a few hundred MB. rsync enables you to just pull the differences across the 'net reducing significantly what it is your drag across thin pipes.

    Also, if you have databases, don't for get to include a dump of those in your backup. Just mysqldump them to a text file and include them in your gzipped archive. And of course if you use "history" clear it (cat /dev/null > ~/.mysql_history etc.)
     
    ThreeGuineaWatch, Mar 1, 2007 IP
  7. clixxer

    clixxer Peon

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I'd go for rsnapshot (google it) if you want to go down the rsync route. rsync will also require shell access.

    Get a good host with remote backup - probably the easiest way to prevent the issue.
     
    clixxer, Mar 1, 2007 IP