cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating from Samba to Alfresco share

freebsdboy
Champ in-the-making
Champ in-the-making
We're just getting started learning and testing things out (per-deployment).

I've for Community version 3.2 running on a Centos 5.3 box.
Can login etc.. to the http://localhost:8080/share
and vi CIFS \\alfrescobox\Alfresco

Now How do I get my content (documents, powerpoint, images etc..) from my current network drive share to the
Alfresco share.
While keeping file attributes like
data modified, created
document owner, creator

When moving between linux file server we just use rsync and all those are preserved.  Is there such a tool for
loading or migrating content to the Alfresco content store?

Thanks
4 REPLIES 4

norgan
Champ in-the-making
Champ in-the-making
Cifs and samba are two protocol implemetnations of the same protocol to transmit files. rsync is a tool to move files over file protocol, so it should work here as well. One note of care - be sure to do the moves in small hopps, as you can see in this forum. Dont try to import all 100 GB (or whatever) at once.

Another thought - spend some time analysing your data, maybe you find some things you want to sort out befor import - content types, categorisation, extra import filters for metadata … this kind of stuff

Norgan

freebsdboy
Champ in-the-making
Champ in-the-making
No that doesn't work either.

Where is what I tried.

Mount the CIFS volume to the local filesystem
As root #mount.cifs \\server\Alfresco /mnt/Alfresco -o username=admin,password=xxxx

As root# rsync -vaz /local/home.dir/ /mnt/Alfresco/User Homes/

Rsync works copies the files to the Alfresco User Home share but::

Problem is that each of the files are now owned by root, have the same creation date as the time I ran rsync.

Is this one of those deals with the paid version there is a tool to do this and the community version there is not?

Who have other people migrated to Alfresco?

rays
Confirmed Champ
Confirmed Champ
You may need to apply additional rsync options. Check its man pages:

-g, –group                   preserve group
-o, –owner                 preserve owner (root only)
-p, –perms                 preserve permissions

Trust this may help.

freebsdboy
Champ in-the-making
Champ in-the-making
No that doesn't work either.

I don't believe that its a rsync error/issue.  ITs the Alfresco share doesn't support the extensions for the client to define who owns the file and other file details.

Interesting.. now way to migrate the data with out writing a special program.

Anyone willing to share what they wrote with the rest of us?  That could be posted to the Alfresco wiki.