Riva CRM Integration - Documentation and Knowledge Base

How to Bulk Delete or Recreate Home Directories

Article ID: 154
Last updated: 13 Oct, 2010

Question:  Is it possible to do a modify on home directories in such a way that you can delete and/or recreate them. 

There appears to be an option to select all the student ids in a container > Modify Home Directory > Delete (which would delete the contents & dir) and > then Recreate the path again (empty home dir).   We'd want to do this in a bulk modify, approximately 25,000 home dirs in a container called STUDENTS on each TREE (since we have approx 43 trees here at this time) or at least 2500 per students container.

Answer:  Yes.  But there is are specific steps you need to go through:

  1. Before you export/delete the home directories, you will want to make sure that you run the following command for all of the student home directories:  Flag *.* -sy -h -ri -di n /s /c   This will flag any of the files in the student directories so they are available to be copied (remove system, hidden, rename or delete inhibit (for Mac files) flags and leaves them flagged as normal files.
  2. Highlight the users for whom you want to export the users home directories.
  3. Export the home directories with the other appropriate information.  This provides the full path.
  4. Select to create a batch file to delete the files after you have confirmed that the move worked properly.
  5. When you import the students into the new location, select the "Copy Directory Contents into Home Directory - Copy Contents directly into the User Home Directory" and identify the correct field in your data file.  When it creates the user, it will copy the data from the original server to the new home directory.  Remember that this can take quite a bit of time and depends on the bandwidth that is available.  You will probably want to run this on multiple workstations at a time if you doing lots of users.
Article ID: 154
Last updated: 13 Oct, 2010
Revision: 1
Views: 5540