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.

One time Cpanel Full Compress Backup

Discussion in 'General Discussion' started by hbhb, Jul 3, 2007.

  1. hbhb

    hbhb Well-Known Member

    Joined:
    Dec 1, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I wish to make a ONE-TIME full backup of all my accounts into /backup directory which is mounted to /dev/sdb1 (secondary drive)

    What is the SSH command to execute this job? There's likely 100+ accounts in my server.

    Thanks
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This can be setup via WHM in the backups section.
     
  3. hbhb

    hbhb Well-Known Member

    Joined:
    Dec 1, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    I know.

    I currently already set a daily uncompressed backup inside my WHM.
    /backup/cpbackup/daily

    So I do not want to modify them.

    I just want to run a one-time compress full backup into /backup/july which I have already created as a new directory.

    So any idea how to do that on SSH using command or by creating a new script? Please guide.. as I'm still quite new to Cpanel. thanks!
     
  4. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    the easiest way would be as follows

    After tonights backup has ran
    just do

    cp /backup/cpbackup/daily /yournewdrivelocation

    I suggest you first use screen so you can terminate the connection and keep the process running


    :)

    thats the easiest way short of scripting it out.
     
  5. hbhb

    hbhb Well-Known Member

    Joined:
    Dec 1, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Are they any other way like I needed using SSH?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    tar -pzcvf /backups/cpbackup/weekly_july4.tgz --directory /backups/cpbackup/weekly .


    Might do the trick. But with 100+ accounts it could fail depending on the size. In that case you'd need to break it up into smaller pieces. Like compressing them at backup time would do. ;)
     
Loading...

Share This Page