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.

Bacup account manually

Discussion in 'General Discussion' started by roax66, Jul 14, 2005.

  1. roax66

    roax66 Well-Known Member

    Joined:
    Jan 21, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Backup account manually

    How can I backup all accounts manually via ssh? Is there a command to run? I want to do an extra manual backup asap and can not wait for the automatic function to run.
     
    #1 roax66, Jul 14, 2005
    Last edited: Jul 14, 2005
  2. gpreston

    gpreston Well-Known Member

    Joined:
    Jan 31, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    West Chester, PA
    You can manually backup a specific account by doing the following

     
  3. roax66

    roax66 Well-Known Member

    Joined:
    Jan 21, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Thanks but I wonder if there is a possibility to backup all accounts in a single command ie. just as the automatic function included in whm?
     
  4. gpreston

    gpreston Well-Known Member

    Joined:
    Jan 31, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    West Chester, PA
    See if the following will work for you

     
  5. roax66

    roax66 Well-Known Member

    Joined:
    Jan 21, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    I get the message:
    "Weekly Backup is up to date".

    Hence it is impossible to run a new backup manually (unless I delete the current backup first)?
     
  6. gpreston

    gpreston Well-Known Member

    Joined:
    Jan 31, 2004
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    West Chester, PA
    I'm outta ideas now, haha. Sorry man. :(
     
  7. ret

    ret Active Member

    Joined:
    Nov 5, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    this will prob work, pretty sure it will just error out on non-cp accounts

    for X in `cd /usr/home/; ls`; /scripts/pkgacct ${X}; done
     
  8. HostingZero.com

    HostingZero.com Active Member

    Joined:
    Jun 23, 2005
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Try setting backups to "daily" first in your WHM and then run /scripts/cpbackup

    Hope that works.

    Regards.
     
Loading...

Share This Page