Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migration of existing folder/file structure to Plone using funnelweb

I wish to migrate the existing files and the folder structure from my PC irrespective of OS i.e Windows/Linux to Plone 4.1.

I have gone through the document regarding Mr.migrator, transmogrifier, Enfold desktop, FTP etc. But I wish to have a batch process, which will walk through the folder structure and create the same with the files in it and upload to Plone without any intervention. The file structure should be the same as specified initially, as the server path. Aim is to upload legacy content into Plone before uploading new files and further customizing it to suit the requirement.

Does such a product exist, which can be directly used in buildout.cfg?

Part of the snippet of buildout.cfg now using funnelweb for plone 4.1, on linux debian

parts =
    instance
    zopepy
    zopeskel
    unifiedinstaller
    repozo
    backup
    chown
    funnelweb

[funnelweb]
recipe = funnelweb
crawler-site_url=file:///home/xyz/Desktop/MassMail/mm_files 
ploneupload-target=http://admin:admin@localhost:8081/VAGroup

The files from the url need to be uploaded into a plone instance in the folder /mysore. If

url=file:///home/xyz/Desktop/MassMail/mm_files 

is used instead of the web page, the files from the folder MassMail from my local system should automatically get uploaded into the VAGroup site at the target folder specified?

How exactly should it be done? Files can contain .doc, .xls, .img, .png, .pdf etc which need to be uploaded to the site. I see all the files in the /var/funnelwebcache/ and also the files with the file.metadata. Why does it not get uploaded into the site? Do I have to specify something else. Also I needed only the files from the folder: mm_files not from the parent/grandparent i.e NOT from home/xyz/Desktop/MassMail subdirectories which I see in the cache.

like image 744
user956424 Avatar asked Aug 14 '12 09:08

user956424


2 Answers

You can use Zope's built-in FTP and/or WebDAV services to allow intervention-free batch upload of many kinds of files + folders into Plone. This works extremely well with images, PDFs, Office docs, plain HTML files, etc. http://plone.org/documentation/kb/webdav/ is a good starting point. (FTP works very similarly.) Enfold Desktop provides a friendly Windows front-end to this. (http://www.enfoldsystems.com/news/enfold-desktop-windows-7-plone-4-compatibility)

like image 34
Jon Stahl Avatar answered Nov 14 '22 23:11

Jon Stahl


I think the problem is a confusion is between mr.migrator, transmogrifier and funnelweb.

Mr.migrator is a way to run a transmogrifier pipeline via the commandline. Funnelweb is a pre-packaged pipeline.

So if you are using mr.migrator as you are above you need to create a complete transmogrifier pipeline.cfg configuring all the parts yourself.

If you are using funnelweb when you can follow the instructions here https://github.com/collective/funnelweb and use the file url e.g. url=file:///home/xyz/Desktop/MassMail/mm_files and it should work.

like image 190
djay Avatar answered Nov 14 '22 23:11

djay