View previous topic :: View next topic |
Author |
Message |
t0bi Tux's lil' helper
Joined: 01 May 2006 Posts: 128
|
Posted: Sat Oct 07, 2006 11:24 pm Post subject: [SOLVED] deleted file - possible to recover from cups-spool? |
|
|
hello,
i deleted a pdf-file by mistake. fortunately, my
printer was switched off, so the data must still
reside somewhere in the /var/spool/cups-directory
i think.
is it possible, to recover the file from there?
please help, i really NEED this file.
thanks,
toby
Last edited by t0bi on Mon Oct 09, 2006 10:44 pm; edited 1 time in total |
|
Back to top |
|
|
ervin.peters Tux's lil' helper
Joined: 20 Aug 2003 Posts: 110 Location: Apolda, Germany
|
Posted: Sun Oct 08, 2006 11:00 am Post subject: Re: deleted file - possible to recover from cups-spool? |
|
|
t0bi wrote: | hello,
i deleted a pdf-file by mistake. fortunately, my
printer was switched off, so the data must still
reside somewhere in the /var/spool/cups-directory
i think.
is it possible, to recover the file from there?
please help, i really NEED this file.
thanks,
toby |
What shows
$ lpq
?
If that printjob is displayed, you got a chance to see that file in the cups spool directory, and it might be usable if your using a postscript printer. If not,the spoolfile will be the raw printjob prepared for the printer: PCL or some special bitmap data.
It is possible to 'preserve printjobs' in the cups-configuration, but AFAIK it is off by default.
ervin |
|
Back to top |
|
|
t0bi Tux's lil' helper
Joined: 01 May 2006 Posts: 128
|
Posted: Sun Oct 08, 2006 5:16 pm Post subject: |
|
|
ok, lpq shows me this print-job, so how do i do this now?
sorry, but i don't want to do anything wrong and loose
this file completely...
thanks,
toby |
|
Back to top |
|
|
ervin.peters Tux's lil' helper
Joined: 20 Aug 2003 Posts: 110 Location: Apolda, Germany
|
Posted: Mon Oct 09, 2006 8:10 pm Post subject: |
|
|
t0bi wrote: | ok, lpq shows me this print-job, so how do i do this now?
sorry, but i don't want to do anything wrong and loose
this file completely...
thanks,
toby |
There is no way to do nothing wrong, unless you know what you are doing. Thats the price for freedom and independency, and the need.
maybe you want to become root and do something like
# cd /var/spool/cups/
# ls
is your file there?
no? then
# cd tmp
is your file here?
yes?
another method to find out where the file exists might be:
# find /var/spool/cups/ -iname [printfilename]
copy it to your user home:
# cp -v [printfilename] /home/[yourusername]/[printfilename]
and make a backup copy in your user home.
# cp -v [printfilename] /home/[yourusername]/[printfilename].bak
both files should have root as owner now and 744 permissions.
But you'd find it nice to have the first copy available under your user account:
# chown [yourusername] /home/[yourusername]/[printfilename]
nowyou can play around with that file, but be careful with it and the beackup copy.
if it is a ps file you might want to try
$ pstopdf [printfilename]
Maybe this produces your wanted pdf file
otherwise, you'd have to find out what this file is and how to convert it back.
ervin |
|
Back to top |
|
|
t0bi Tux's lil' helper
Joined: 01 May 2006 Posts: 128
|
Posted: Mon Oct 09, 2006 10:41 pm Post subject: |
|
|
thank you, i got the file from the /var/spool/cups via its file-size.
it is a .ps-file, but i cannot convert it to a text file or so, that gives
me an error. (pstoedit)..
but thank you anyway! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|