SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am very new to this concept of archiving and record management.

I have the following requirements:

  1. Create a document library when a new event is added. I can do this with an event receiver.
  2. The document library should be archived for 30 days.

The 2nd item I have no idea how to do it using code. Where is it archived?

share|improve this question
up vote 1 down vote accepted

The quickest way to archive would be to export the document library using the Export-SPWeb PowerShell command. Use Import-SPWeb for restoration (archives are file packages that can use optional compression. See the -Path and other options in the Export-SPWeb command).

Other PowerShell posts to manage the document library (cleanups, uploads, etc) -

If you must - there are commercial companies like AvePoint, Metalogix, Idera & Axceler that provide utilities for library archving & backup administration.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.