1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Account backup without email data, only structure/settings/passwords

Discussion in 'Data Protection' started by Cha0s, Sep 12, 2011.

  1. Cha0s

    Cha0s New Member

    Joined:
    Mar 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Amsterdam
    Hello guys (and girls if any :D ),

    I am looking for a way to be able to backup an account but exclude the email data from the archive but not the email accounts, passwords, or any settings each user has on his/her mail account.

    It's not mandatory (actually it's not preferred at all :p ) for this to be done via WHM or cPanel.
    It could be done with some bash scripting or whatever it's needed via SSH.

    Any kind of solution that can give me a cpanel type backup with an 'easy to restore' process without the email accounts data but with the email accounts settings it's appreciated :)


    Sorry if this question has been answered before. If that's the case please point me to the right direction :)


    Regards.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    12,233
    Likes Received:
    41
    Trophy Points:
    48
    Location:
    Pennsylvania
    You can use the file in the root of the account named: cpbackup-exclude.conf and add the full path to directories you wish to be skipped during backups. There are several threads on the forums covering this topic, I think searching for that file name should get you there.
     
  3. Cha0s

    Cha0s New Member

    Joined:
    Mar 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Amsterdam
    Thank you for your reply!

    This looks like the thing I am looking for.

    Is it possible though to have the normal backup that runs everyday to do a whole account backup and another backup with the cpbackup-exclude options?

    The whole point in what I am looking for is to minimize the time of restoring a specific account in case it needs restore.
    That being said, I still wish to have a proper full backup of an account just in case.


    I guess with some bash scripting I can do that from SSH so not really a problem there..


    Where can I find more information about where and how cPanel stores the emails and folders of an email account?

    If I exclude /home/user/mail/* will still keep any user settings, passwords etc or are those stored in mail/ folder?


    Thanks!
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    12,233
    Likes Received:
    41
    Trophy Points:
    48
    Location:
    Pennsylvania
    It's either one or the other I believe. I do agree though, with some sort of cron you maybe able to use that file on some days, have it disabled or renamed and out of use on others. I'm sorry I can't help more on that though.

    As for email directories and other settings, that link I've posted above can be reused to find lots more for this sort of thing as well. For example.

    Good luck!
     
  5. Cha0s

    Cha0s New Member

    Joined:
    Mar 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Amsterdam
    Ok, thanks for giving tips on how to use google instead of cPanel :p
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    12,233
    Likes Received:
    41
    Trophy Points:
    48
    Location:
    Pennsylvania
    Google lives on these forums. :)
     
  7. Cha0s

    Cha0s New Member

    Joined:
    Mar 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Amsterdam
    I meant to be sarcastic...

    Google returns hundreds of irrelevant stuff to what I am looking for.
    I thought this was a community forum for helping users with cPanel products, not a forum to make users even more frustrated when they are searching for something specific regarding cPanel/WHM.

    Thanks anyway :)
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    12,233
    Likes Received:
    41
    Trophy Points:
    48
    Location:
    Pennsylvania
    I understood the post just fine.


    No need to thank me for trying to push you in the right direction if it wasn't helpful. For me the second result at the link I posted is to this thread:
    http://forums.cpanel.net/f43/email-account-migration-restoration-190041.html

    In that thread, #2 post by cPanelTristan states this:

    My intention was not to frustrate you, but to assist you a bit more in helping you find what you need, without assistance.
     
  9. Cha0s

    Cha0s New Member

    Joined:
    Mar 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Amsterdam
    That's what I asked.

    Wouldn't be better for all of us if you just told me that instead of treating me with the standard 'Use google' approach? ;)

    There wouldn't be any need for this discussion, and everyone would be happy :p

    Just a thought.


    Thanks again :)
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    12,233
    Likes Received:
    41
    Trophy Points:
    48
    Location:
    Pennsylvania
    You'll find if you check, I very rarely suggest a user search without actually giving a link to that search. To be helpful.

    If I treated you to anything it was not the standard "Use google" approach, more like the 'here's the answers you seek, all you need to do is read them' approach. Keep in mind there is no problem with your cPanel software here, you want to do something special.

    Everyone's not happy?


    You're very welcome! :)
     
  11. Cha0s

    Cha0s New Member

    Joined:
    Mar 9, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Amsterdam
    Hello,

    Everyone is happy now indeed :D
     

Share This Page