Announcement

Collapse
No announcement yet.

Export-Mailbox Problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Export-Mailbox Problem

    Hi,

    I have to Export the entire DB to PST's every Night. Server is EXCH 2007 SP3. At the Moment I use this snippet of Powershell code to do so:
    Code:
    foreach ($mbx in (Get-Mailbox -ResultSize Unlimited)) { Export-Mailbox -identity $mbx –PSTFolderPath "E:\$mbx.pst" -Confirm:$false }
    But it takes forever to export the 100GB / 1100 Users Database since it can only export 1 Mailbox at a time. I'm not a PS Geek, so bare with me.
    Is there any Chance to run multiple threads with this one?
    I already tried
    Code:
    Get-Mailbox -ResultSize Unlimited | Export-Mailbox –PSTFolderPath "E:\" -Confirm:$false
    It breaks with error like "Cannot write multiple Mailboxes to single PST File"

    any ideas?
    - Tobias

  • #2
    Re: Export-Mailbox Problem

    The first question is why?
    This isn't a valid backup of Exchange, and it will be slow. PST exporting is slow, particularly for 100gb, which will be close to 300gb once the process has completed.

    There are loads of scripts for this kind of "backup" around, so you should be able to find one that you can modify... although I see it as a pure waste of time.

    Simon.
    --
    Simon Butler
    Exchange MVP

    Blog: http://blog.sembee.co.uk/
    More Exchange Content: http://exchange.sembee.info/
    Exchange Resources List: http://exbpa.com/
    In the UK? Hire me: http://www.sembee.co.uk/

    Sembee is a registered trademark, used here with permission.

    Comment


    • #3
      Re: Export-Mailbox Problem

      It's everything but a waste of time. We used Exmerge for our 2003 Exchange and it saved our butts couple of times. Why? User deletes a bunch of mails which he convieniently stores in the trash can over a year time, but needs it (!) no use for education.. wont stick.
      So with Exmerge we would go.. jeah waddaya need? I can't lose that. So I'm OK with the Time and Space it needs, I just want to speed it up a little bit with running like 4 Threads a time, wich is plenty to just run it through the night.
      And for the sceptics: No it's not the only backup...

      greetings, Tobias

      Comment


      • #4
        Re: Export-Mailbox Problem

        Originally posted by plvoy View Post
        It's everything but a waste of time. We used Exmerge for our 2003 Exchange and it saved our butts couple of times. Why? User deletes a bunch of mails which he convieniently stores in the trash can over a year time, but needs it (!) no use for education.. wont stick.
        So with Exmerge we would go.. jeah waddaya need? I can't lose that. So I'm OK with the Time and Space it needs, I just want to speed it up a little bit with running like 4 Threads a time, wich is plenty to just run it through the night.
        And for the sceptics: No it's not the only backup...
        There are better option then this now for what you want, as other had said this is very slow, and will use large amounts of space.
        Now, you said you accept the extra time and space that it will take, but then complane about the time... so you do not accept it.
        Personally your Backup Software package should be able to do a "Per Mailbox" back, which should spit out a PST (or similar file type) for each mailbox, and then keep it up to date each night.

        Other then that... if you REALLY want to use Powershell, this page tells you how to do it, and gives all the warnings so... http://markswinkels.nl/2011/04/how-t...exchange-2010/

        Personally I think there should be a much easier and quicker way to achive what you want (it SHOULD be part of your backup (or DRP) Plan.

        Wofen
        Good to be back....

        Comment


        • #5
          Re: Export-Mailbox Problem

          You need an email archiving solution IMO. PSTs are a horrible way to store anything. With proper archiving (E.g Enterprise Vault or GFI Mail Archiver) everything gets archived and can't be deleted by the users, plus it's easily searchable.

          Personally I find user education a lot easier after the first time you DON'T save their arse after someone does something stupid, and using the Deleted Items folder as storage is right up there.
          BSc, MCSA: Server 2008, MCSE, MCSA: Messaging, MCTS
          sigpic
          Cruachan's Blog

          Comment


          • #6
            Re: Export-Mailbox Problem

            Originally posted by plvoy View Post
            It's everything but a waste of time. We used Exmerge for our 2003 Exchange and it saved our butts couple of times. Why? User deletes a bunch of mails which he convieniently stores in the trash can over a year time, but needs it (!) no use for education.. wont stick.
            So with Exmerge we would go.. jeah waddaya need? I can't lose that. So I'm OK with the Time and Space it needs, I just want to speed it up a little bit with running like 4 Threads a time, wich is plenty to just run it through the night.
            And for the sceptics: No it's not the only backup...
            Nothing that you have said justifies PST level backup.

            If a user deletes email messages that are stored in their Deleted Items folder, then Deleted Item Recovery gets them back.
            Longer than the DIR time, then the email messages can't be that important, so they can wait while you recover them from your Exchange aware backup.

            Brick level backups are a complete waste of time, disk space and energy. All you are doing is duplicating data that is in your regular backup. I have never done brick level backups and have always recovered 100% of whatever the client has required.

            Simon.
            --
            Simon Butler
            Exchange MVP

            Blog: http://blog.sembee.co.uk/
            More Exchange Content: http://exchange.sembee.info/
            Exchange Resources List: http://exbpa.com/
            In the UK? Hire me: http://www.sembee.co.uk/

            Sembee is a registered trademark, used here with permission.

            Comment


            • #7
              Re: Export-Mailbox Problem

              As Sembee said pst backups are a waste of time and space and of course it's mapi access which is a client access protocol not a backup API. You don't get more safty then using regular Exchange aware backups and restores

              Anyways you mentioned you want to run multiple export processes at a time, so instead of getting users with get-mailbox you can provide a list of users using different csv files and use import-csv.
              This will be static so you have to change them whenever users come and go.
              Though I'm not sure if you can run multiple export processes at one machine so you have to test this out.

              Comment

              Working...
              X