Moving content from one content store to another in Alfresco

249 Views Asked by At

I have two content store defined in content-store-selector-context.xml file .

First one is default content store and another content store in different physical location(storeB) .
Once in month i need to move files from default conent store to into storeB .

I am planning to use scheduler which will invoke a script . script should move files from default to storeB. (PS:-Not copying)

Both content store is viewable from same server.

I was using following script , but this copy the file to storeB but not removing from default content store . Can i know anything wrong in this script or please suggest different approach if any

var logFile = space.childByNamePath("alf docs1.txt");
logFile.addAspect("cm:storeSelector");
logFile.properties['cm:storeName'] = "storeB";
logFile.save(); 
0

There are 0 best solutions below