Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-26-2010, 02:28 PM
Senior Member
 
Posts: 61
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
Reply With Quote
  #2 (permalink)  
Old 05-26-2010, 11:09 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

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


Bill
Reply With Quote
  #3 (permalink)  
Old 05-27-2010, 06:24 AM
Senior Member
 
Posts: 61
Default

No problem.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.