环境:alfresco4.2.b
上传的文件存放的目录在:
1、看alfresco_home\apache-tomcat\shared\classes\alfresco-global.properties里面的dir.root属性。
一般是alfresco_home/apps/alfresco/data
里面的目录结构是这样的:
../data /oouser /backup-lucene-indexes /contentstore /contentstore.deleted /lucene-indexes
其中,当前正在使用的文件是在contentstore里面,它是按照日期的形式将上传的文件保存其中的,不过名字是改成类似uuid形式的,后缀名改成是bin结尾的。
2、系统缺省情况下不会立即删除掉永久删除的文件,而是会继续保存一段时间(缺省14天),然而,你可以更改这些设定,在repository.properties文件里:
# # Decide if content should be removed from the system immediately after being orphaned. # Do not change this unless you have examined the impact it has on your backup procedures. system.content.eagerOrphanCleanup=false # The number of days to keep orphaned content in the content stores. # This has no effect on the 'deleted' content stores, which are not automatically emptied. system.content.orphanProtectDays=14 # The action to take when a store or stores fails to delete orphaned content # IGNORE: Just log a warning. The binary remains and the record is expunged # KEEP_URL: Log a warning and create a URL entry with orphan time 0. It won't be processed or removed. system.content.deletionFailureAction=IGNORE # The CRON expression to trigger the deletion of resources associated with orphaned content. system.content.orphanCleanup.cronExpression=0 0 4 * * ?
经过测试,当日期超过14天后,alfresco会将删除的文件放在contentstore.deleted目录里。
refurl:http://www.sysvision.net/wiki/en/Alfresco_Admin_Guide