cancel
Showing results for 
Search instead for 
Did you mean: 

export users from Alfresco??urgent

sumit057
Champ in-the-making
Champ in-the-making
is it possible to export the system users (created users) in Alfresco to export?
23 REPLIES 23

joe_l3
Star Contributor
Star Contributor
Hi all.
I did a test on my system, everything works fine! Well done mathias.lin ! However I post an important note:
The classpath separator character is:
 ";"   (Windows)
":"   (Linux)

joe.l3

mathias_lin
Star Contributor
Star Contributor
Yes, command line import/export works fine, but I'm still looking for a convenient way to export and import i.e. a single resource or a folder from one Alfresco workplace to another easily but without doing it manually. It's quite a drawback that you need to shutdown the entire Alfresco server before running the command line im/export.

What I'd like is to have a option in Alfresco workplace 'replicate' which replicates to another remote server (of course requiring some kind of destination configuration somwhere).

I wonder if there are any samples of anybody out there who did that i.e. via the Web Services API or the Sharepoint API somehow. Unfortunately all the available Alfresco eBooks don't cover much about this topic at all. They don't go into depth very much.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
You can create extension and export users to xml and import them letter.

PS: what do you need to export only users or their home spaces and else, is so you can create export users action and export zip , with their homespaces, not so hard to implement.

mathias_lin
Star Contributor
Star Contributor
Hi Savic,
on my last post I meant 'content' export, actually didn't mean user export. For example I simply want to export/import one file or maybe one subfolder from server1 to server2.
I have two ebooks on Alfresco 3 but they don't say much about extension development and/or on this particular issue regarding import/export. Any resources/links on that which you know about?
Thanks, M.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
I really do not understand you. if you want to have same data from one server to another, just backup database and copy files to other server .

mathias_lin
Star Contributor
Star Contributor
Well, as said, I do not want to backup the whole database and alf_data directory (60 GB), I only want to export/import one single resource for example. And I want the end-user (not me) to be able to do that via the Alfresco workplace. These users are non-technical people, I just want them to click on an icon (i.e. in the context menu of a file) in the Alfresco workplace which allows them to replicate this file to another remote server with the same folder structure.
Obviously this would be some kind of extension and using the web services API; what I'm looking for is some kind of documentation/sample for this approach.
Copying the database and alf_data only works for the entire repository.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Well, in my company we have extension where you can export folder to zip file ( works same as in windows), maybe that is the best solution for you.

yaziderman
Champ in-the-making
Champ in-the-making
Hi mathias.lin

But don't you know the import/export feature already available in Alfresco?
go to the administrator control panel, you have there two options, Export and Import, use them to backup any content you like.

Follow the link for more information:
http://wiki.alfresco.com/wiki/Export_and_Import

Yes, command line import/export worked fine, but I was looking for a convenient way to export and import i.e. <strong>a single resource or a folder</strong> from one Alfresco workplace to another easily but without doing it manually. <strong>It's quite a drawback that you need to shutdown the entire Alfresco server before running the command line im/export.</strong>

Hi mathias.lin, … the very short post of mrogers ("Or use transfer…") is a real possibilty. I assume he's proposing FTP, which is a built-in feature of Alfresco. I'm using this for mass upload through php api. All program languages have api's for FTP. I think it should be possible to extend the java-programmed workplace with functionality for single files or whole folders using ftp in the background (not manually). For example as an additional entry in the context menu of a content item (for beeing user-friendly). Just some ideas …