Migrating/adding old control files (cXXXXX) toa CUPS server

jacques du toit jboydutoit at gmail.com
Thu Apr 29 01:03:05 PDT 2010


> On Apr 28, 2010, at 10:18 AM, jacques du toit wrote:
> > Hi,
> >=20
> > 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.
> >=20
> > My server was set up so as to keep only 500 control files. Having =
> realised this and having then changed it to MaxJobs=3D0, 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=3D0).
> >=20
> > 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
>
>
>
>

Hi Michael,

Many thanks, that did the trick!

Sincerely
jacques du toit





More information about the cups mailing list