Results 1 to 3 of 3

Thread: Archive User Script

  1. #1
    Join Date
    Jul 2006
    Location
    Milwaukee, WI
    Posts
    63
    Rep Power
    10

    Default Archive User Script

    Not sure if this is the correct forum to put this. Since everyone here has helped me out so much I figure I will donate a bash script that I use here to help me archive users that no longer used.

    What the script does:

    1) Resets a users account with a random password
    2) Activates the account
    3) Creates a full dump of the account in .tgz format and copies it to a backup folder
    4) Uses imapsync to sync the contents of the account to an account called userarchive with a folder named after the user.
    5) Closes the account.

    This allows me to archive users email in a central account so I can go back to the old users and search for emails. Also, it does make a full dump of the account in case I need to restore it in the future. All these processes are non destructive. It will not delete the old account, that is left up to you.

    Requrements:

    1) Imapsync imapsync | freshmeat.net
    2) A little bash script knowledge to edit some of the variables.
    3) Create an account to store the archived email

    Under the zimbra user account run
    sh userarchive.sh usertobearchived@example.com
    userarchive.sh.txt

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Nice script and thanks for sharing it, would you mind putting a copy of your post in the Zimbra :: Wiki?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Jul 2006
    Location
    Milwaukee, WI
    Posts
    63
    Rep Power
    10

    Default

    No problem.

Similar Threads

  1. Java Script Error - Changing User Password
    By jaydorado in forum Users
    Replies: 3
    Last Post: 11-03-2009, 05:10 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Zimbra Open Source Backup Help
    By ayush1440 in forum Administrators
    Replies: 8
    Last Post: 11-13-2008, 03:56 AM
  4. /etc/aliases > script = unknown user
    By tercero12 in forum Administrators
    Replies: 3
    Last Post: 02-13-2008, 07:41 AM
  5. Replies: 3
    Last Post: 10-01-2007, 10:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •