1

Cleaning up after a former employee, I've found that they accidentally included 800MB of data files in a commit to CVS years ago. Several other commits to the same project were made afterwards.

This data is extremely security sensitive and legally restricted and it needs to be removed completely (nothing hanging about in the Attic or filesystem anywhere).

How do I get rid of the files without corrupting CVS?

(It's a linux host, and I have root access and am CLI fluent, but not a CVS expert!)

Medievalist
  • 407
  • 4
  • 7

1 Answers1

3

You can delete the file from the Attic directory after removing it with cvs rm.

In your project directory, delete the file and commit the change:

cvs rm -f thefile
cvs commit -m 'deleted thefile' thefile

This moves the file thefile,v to the Attic directory in your CVSROOT/projectdir directory where you can delete it. Assuming you have set the CVSROOT environment variable, you can now do a

rm "$CVSROOT/projectdir/Attic/thefile,v"

and the file is gone with its history.

$ cvs stat thefile
cvs status: nothing known about `thefile'
===================================================================
File: no file thefile           Status: Unknown

   Working revision:    No entry for thefile
   Repository revision: No revision control file
Freddy
  • 25,172
  • 1
  • 21
  • 60