[cups.general] Migrating/adding old control files (cXXXXX) to a CUPS server

Michael Sweet msweet at apple.com
Wed Apr 28 10:25:31 PDT 2010


On Apr 28, 2010, at 10:18 AM, jacques du toit wrote:
> Hi,
> 
> I'm wish to learn how to add old control files to a current CUPS server. Simply dumping them in /var/spool/cups/ has proven ineffective as the CUPS system remembers the current job ID as well as the 'starting job ID' from which to consider what jobs have been completed.
> 
> My server was set up so as to keep only 500 control files. Having realised this and having then changed it to MaxJobs=0, I wish to reintroduce the older control files (I made backups) to the server. Unfortunately, the server does not look further back into the past than a particular job number (the one that was 500-th from the 'current' one when I changed to MaxJobs=0).
> 
> How can I get the CUPS server to consider the files in /var/spool/cups and use them to determine how many jobs have been completed. As per the web interface under completed jobs, "Showing Y of X completed jobs", I wish to change X.

OK, first you'll need to stop cupsd while you do this.

Second, after you stop cupsd, copy the control files over and then remove the job.cache file, usually in /var/cache/cups but under /var/spool/cups/cache on Mac OS X.

Finally, start cupsd and it will see all of the old control files.

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups mailing list