Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

Re: Restore files from Data.fs.tr0 SOLVED

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


lukesh at seznam

Mar 18, 2013, 12:36 PM

Post #1 of 1 (166 views)
Permalink
Re: Restore files from Data.fs.tr0 SOLVED

This simple script and diff and manual changes against appropriate files.

#!/var/zope/python/bin/python
f = open("Data.fs.tr0", "r+ab")
c = f.read()
s='__name__q'
a = c.split(s)
i = 0
print(len(a))
for polozka in a:
i = i + 1
fn = 'vystup_' + str(i)
x = open(fn,"ab")
x.write(polozka)
x.close()
f.close()

Lucky that it was no much of filenames. Select both files in Total
Commander, then File - Diff - uncheck binary and check again - Edit, helps a
lot.

For bigger truncated slices it could be better to do it with filename
support etc.

Regards, JL.

_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.