Results 1 to 8 of 8

server backup how to?

This is a discussion on server backup how to? within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Ok, all i been doing is just making manual backups of my whole site ever "when i remember" and i ...

  1. #1
    Senior Member
    Real Name
    chance
    Join Date
    Aug 2006
    Posts
    260
    Liked
    2 times

    server backup how to?

    Ok, all i been doing is just making manual backups of my whole site ever "when i remember" and i try to backup all of my db once a week.

    I know there has to be an easier automated way. I was thinking about buying a nas for my office. Can they be setup to grab my website or my sites be setup to send to them?

    Just want something more automated because im going to forget one day and get hit the next.

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    do you have cpanel or plesk or anything? most of those have built in tools

  3. #3
    Senior Member
    Real Name
    chance
    Join Date
    Aug 2006
    Posts
    260
    Liked
    2 times
    yea, i have cpanel. and i see how to create a system backup in it and ftp it. Just have no where to ftp it. And saving the backup on it self is counter productive. So i been manual backing up by ftp to my computer.

    If i buy something like this. Newegg.com - BUFFALO TS-H1.0TGL/R5 4 x 250G TeraStation PRO II Network Attached Storage - Network Storage (NAS)
    can i backup to this? don't i need just need something with a built in ftp server?

    And plug it into my office network can i access it by ftp also to backup my sites.

    Or should i just pay my host for a nas or use off site ftp

    Thanks brian

  4. #4
    Senior Member
    Real Name
    Martyn Day
    Join Date
    Dec 2005
    Location
    Kent - UK
    Posts
    650
    Liked
    0 times
    Blog Entries
    1
    with cpanel you can either backup the whole account, or just backup the databases.... its up to you..

    you could say backup the whole site weekly, database daily?

    your choice.

    but i dont recommend spending 800$ lol

    just get an external HD if you dont want to do it on your local PC. and just back up it as you wish.

  5. #5
    Senior Member
    Real Name
    chance
    Join Date
    Aug 2006
    Posts
    260
    Liked
    2 times
    yea, with cpanel it wants to ftp it somewhere. or save it local. I can't ftp it to a drive/share on my local computer that i know of. I was told nicer nas can be ftp to. I just want something that can be set and forget about it.


    I would peferr not to spend 800 either just don't want to loose either of my 2 sites. I make my living off 1 of them and i hope the other grows to where it makes a little addition to my income.

    But i was planing on getting a nas anyways. I was just going to get a cheappy if i can't save my websites to it. I know if i start puting my websites on it i need lots of more room. I only need a small one for my business backups.

  6. #6
    Senior Member
    Real Name
    Martyn Day
    Join Date
    Dec 2005
    Location
    Kent - UK
    Posts
    650
    Liked
    0 times
    Blog Entries
    1
    Quote Originally Posted by rocket468 View Post
    yea, with cpanel it wants to ftp it somewhere. or save it local. I can't ftp it to a drive/share on my local computer that i know of. I was told nicer nas can be ftp to. I just want something that can be set and forget about it.


    I would peferr not to spend 800 either just don't want to loose either of my 2 sites. I make my living off 1 of them and i hope the other grows to where it makes a little addition to my income.

    But i was planing on getting a nas anyways. I was just going to get a cheappy if i can't save my websites to it. I know if i start puting my websites on it i need lots of more room. I only need a small one for my business backups.
    well you would still have to go to cpanel and back it up when you want to.....

    and of course you can save it locally..

  7. #7
    Member 1QuickSI's Avatar
    Real Name
    Steven
    Join Date
    Jan 2006
    Location
    CT
    Posts
    87
    Liked
    3 times
    I just run a PERL script that is called by CRON. This script will grab your entire web directory and databases name the backup by date and zip them up placig them where ever you want to store them.

    Code:
    #!/usr/bin/perl
    # System Backup
    #------ Variables ------
    $backupdir = "/usr/local/DirectoryOfBackUpLocation"; # "." for current
    $other_dirs = "/usr/local/DirectoryToBeBackedUp1 /usr/local/DirectoryToBeBackedUp2";
    #-----------------------
    print "Backup Initiated...\n";
    @timenow = localtime(time);
    $newfilename = sprintf("%02d",$timenow[4]+1) .
    sprintf("%02d",$timenow[3]) . ($timenow[5] + 1900);
    print "Using Filename: $newfilename.sql \n";
    print "Starting database backup... \n";
    system "mysqldump -qce -r $newfilename.sql -u root DataBaseName";
    print "Starting Compression... \n";
    system "tar czf $backupdir/$newfilename.tar.gz $other_dirs $newfilename.sql";
    unlink "$newfilename.sql" || print "Error: Cannot delete file specified: $newfilename - $_ \n";
    print "Done. \n"

  8. #8
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Contact your host. Most providers can offer a NAS for like $10 a month.
    I took their huge cluster server that they offer me some space on, mounted /backup to that partition, and then just run the cpanel job to copy and gzip /home to /backup/date.gz

    nice and easy.

Similar Threads

  1. brought up backup/development server and links do not work
    By jjj0923 in forum General Discussion
    Replies: 1
    Last Post: 04-20-2007, 06:00 PM
  2. Cannot BackUp ( vbseo_all.xml )
    By UnderEstimated in forum Troubleshooting
    Replies: 6
    Last Post: 07-23-2006, 04:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •