Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    37

    Default Manual Backup Script ??

    #/bin/sh

    ######################
    ## Starting MySQL Backup ##
    ## Build Date 11/13/03 ##
    ## Main Process of this ##
    ## Step is to tar the main ##
    ## folders for mysql and ##
    ## and ftp to backup ##
    ######################

    echo ."Starting MySQL Backup".;
    cd /home
    tgz -cf mysql_full_%date%.tgz /var/lib/mysql
    ftp ftp.someftpsomewhere.com
    username
    password
    cd mysql_bk
    put /home/mysql_full_%date%.tgz mysql_full_%date%.tgz
    close
    bye
    rm -rf mysql_full_%date%.tgZ

    ######################
    ## Starting Profile Backup ##
    ## Build Date 11/13/03 ##
    ## Backup Profile Files ##
    ## and ftp to ##
    ## solan.no-ip.com ##
    ######################

    echo ."Starting Profile Backup".;

    cd /home
    ##if exist site_full_%date%.tgz
    ## exit;


    ##if not exist site_full_%date%.tgr
    tgz -cf site_full_%date%.tgz /home/*
    md5sum site_full_%date%.tgz >> site.log
    ftp ftp.someftpsomewhere.com
    username
    password
    cd site_bk
    put /home/site.log site.log
    put /home/site_full_%date%.tgz site_full_%date%.tgz
    bye
    ##md5sum site_full_%date%.tgz >> site.log
    rm -rf site_full_%date%.tgz

    echo ."Finished with the backup".
    echo ."Date = %date% ".
    echo ."MD5 completed hopefully".;

    exit



    ---------------------------------------------
    I'm not sure if this would totaly work, haven't tried it out yet but I just want some way of doing a manual backup offsite to a server/home machine so I know its done, and not have to wait for cpanel's timed backup to complete its process..

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    37

    Default

    well looking at it after I wrote that.. I know there are alot of errors.. so whatever guys.. If you want to help fix it sure.. if not I'll post a working copy later.

Similar Threads & Tags
Similar threads

  1. Manual Backup - The Best Way???
    By stugster in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-06-2007, 05:13 PM
  2. [Ask] Manual Update Addon Script ?
    By capoeng2004 in forum cPanel Developers
    Replies: 14
    Last Post: 05-08-2006, 03:49 PM
  3. Manual backup
    By ramil in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 09-28-2005, 09:23 PM
  4. manual backup
    By vahan in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-25-2004, 03:59 AM
  5. Manual doing a backup of all accounts with the whm script, is it possible?
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-31-2003, 06:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube