Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Archive unused sites

  Asked By: Wendy    Date: May 13    Category: Sharepoint    Views: 2352

I am assigned to develop a program that automatically archives unused sites. The proposed process is to loop through all the sites and find the ones that are not being hit for 6 months, then send email to the site admins with a couple of buttons. When click the delete button or link in the email, the site will be saved as template and then get deleted…

Have some one done the similar thing, or is there a better approach?



4 Answers Found

Answer #1    Answered By: Joanna Dixon     Answered On: May 13

In v2 this is tough. Neither the interface nor the API provide any
way to determine the last time a site  was accessed. All that is
exposed is the last time site content was changed and the last time
site security was changed. The only way I know of to see the last
time a site was accessed is through IIS logs. That makes the process
a little tougher because now you need to loop  through the list of
sites in WSS, then search for each one of them in six months worth of
IIS logs.

WSS has a feature that is 90% of what you want to do. It's called
Auto-Deletion. It's in Central Admin under the Virtual Server
settings. Click "Configure site collection use confirmation and
deletion" once you get there. It'll send  the alerts out and if the
owners don't verify the site is needed, it will delete  it. What it
won't do is back the site up before hand. I'm not sure how important
that is to you.

Also, if you go with your plan, consider using STSADM or SMIGRATE to
back the sites  up before deletion. There are size constraints to
saving sites as templates, something like 10 MB. STSADM is best if
you're doing this at the Site Collection level and SMIGRATE is best if
you're doing it at the site (also known as web) level.

Answer #2    Answered By: Justine Barrera     Answered On: May 13

Can I have any advice on grammatically archive  unused SharePoint sites?

Answer #3    Answered By: Sharonda Mcfarland     Answered On: May 13

Not sure what you mean by grammatically archiving sites, but there are some archival tools you can look into:



There are some gripes about the default site  cleanup you can turn on for SharePoint, such as it emails all site owners about deleting their sites  whether they have been active or not, and that the process  is flaky at best.

Answer #4    Answered By: Cory Brooks     Answered On: May 13

What I mean by grammatically archiving is that develop  a service that can run through all the sites  and find  the ones that are not being used for certain period of time, and send  emails to the site  Admins (not site owners) about the site usage. If “No” or “Delete” button  embedded in the email  is clicked, save the site to a STS template  and finally delete  it. Everything mentioned here is done pragmatically.

Is this a reasonable approach? BTW, we don’t want to use the SharePoint out-of-box automotive deletion feature which doesn’t fit our need.

Didn't find what you were looking for? Find more on Archive unused sites Or get search suggestion and latest updates.