The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Shell script for backup and restore

Discussion in 'Data Protection' started by inddeveloper, Aug 25, 2010.

  1. inddeveloper

    inddeveloper Registered

    Joined:
    Aug 25, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have requirement on shell scripting. I require scripts for the following
    1) Full backup(application and DB): tar all the files and database and copy them in the backup server
    2) incremental back up of files: backup of all the updated files after the last backup
    3) restoring of backup files: restore the backup files from the backup server to the application server

    Please help me in providing the scripts for the above backup and restore functionalities.

    Thanks in advance
     
  2. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Do you need to do the backups to local server or to a remote server ?
     
  3. inddeveloper

    inddeveloper Registered

    Joined:
    Aug 25, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I need to backup(full and incremental) to the remote server.

    please help me in providing the scripts. i am a php developer and i am new to shell scripting.
     
  4. Lyttek

    Lyttek Well-Known Member

    Joined:
    Jan 2, 2004
    Messages:
    770
    Likes Received:
    3
    Trophy Points:
    18
    There are several threads about backup scripts... I'd suggest doing a search of the forums.

    One is even titled something like 'a better backup script'. There are also threads about using rsync for offsite transfer, rotation of backups, etc.
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Have you looked into what cpanel already provides? I think it might already do most of what you want out of the box.
     
Loading...

Share This Page