how to restore printed jobs ?

Kurt Pfeifle kurt.pfeifle at infotec.com
Sun May 20 10:33:54 PDT 2007


>
> > I would like to be able to restore allready printed jobs.
> > i have read some manuals and realized that i should have dxxxxx files in
> > /var/spool/cups but when i tried i dodn't find any.
> > i tried searching system wide and didn't got any results.
> >
> > maybe there is a simpler answar i guess that there is somewhere a config
> > file that defines the data file configuration : when to delete where to put
> > etc ...
>
>
> I assume by "restore" you mean "reprint" or "preserve" your printed jobs.
>
> In /etc/cups/cupsd.conf there are two settings relevant to that. Their defaults are these:
>
>   PreserveJobHistory On
>   PreserveJobFiles Off

There is another setting which does indirectly influence your ability to keep your printed jobs:

    MaxJobs 500

This tells CUPS to keep 500 jobs at most (current and past combined). The oldest jobs are deleted first to keep the total beneath that limit; if the 500 are all new jobs (not printed yet), the 501st one will be rejected...

(And look also at the related "MaxJobsPerPrinter" and "MaxJobsPerUser" settings).

> The "PreserveJobHistory On" keeps the cXXXXX ("control") files in /var/spool/cups/. With the cXXXXX there, your web interface can display the list of past jobs:  http://localhost:23631/jobs?which_jobs=completed (and, BTW, utilities like KDEPrint's kjobviewer also need these CXXXX files to display the job history).
>
> The cXXXXX files hold the meta data for each respective job ID XXXXX. The actual print file as received by CUPS are in the dXXXXX ("data") files (in the original format, before any conversion by CUPS filters). The default "PreserveJobFiles Off" directive makes CUPS delete the dXXXXX files after their print is completed.
>
> You have to change the default to "PreserveJobFiles On" in order to keep the dXXXXX files in /var/spool/cups/ (and in order to keep them for reprint or archiving purposes).
>
> Hint: the "default" CUPS settings may not be actually spelt out in the config file [depending on your distro], but be using its compiled in defaults silently. In that case, just add the lines to cupsd.conf.
>
>
> Cheers,
> Kurt

--
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH - A RICOH Company .......... Stuttgart/Germany





More information about the cups mailing list