cancel
Showing results for 
Search instead for 
Did you mean: 

preserving creation date and modified date

patanne
Champ in-the-making
Champ in-the-making
I have a question to what, for me, is an absolute show-stopping issue.

Using all methods of access, CIFS/WebDAV/web interface, to access Alfresco is there a global way (as in set it once for an entire volume) to ensure that the creation date and the modified date of any file copied from a traditional file system to Alfresco is preserved and maintained?  A natural progression of that question is can the same be said when copying a file from Alfresco to a traditional file system?

For any installation of Alfresco into an organization to replace windows file services there must be a ‘get comfortable’/acceptance/pilot phase, which means the solutions have to coexist.  The smaller the size of the business the more true this is, since a small business is less likely to have the resources to forklift over to Alfresco.  Users rely primarily on two methods to determine whether a given file is what they want, short of opening it:  file name and the dates.  Also, when users do their own manual backups or versioning, they use dates as a determinant.  Certainly the software they may use will.  While you may argue that Alfresco can do a better job than users or other software, this is a chicken and egg scenario, beginning with preservation of the vital basics:  names, dates, & content.  The dates (other than last accessed) of a file, unchanged by a user, have to be immutable across a network or organization.

After pouring through these forums I am more confused now than before.  I keep reading entries containing arguments about metadata and items external to Alfresco.  Then there is the supposed need to do things one file type at a time.  File system dates are metadata.  They are a universal attribute of all files.  Before I care about the metadata inside my word or PDF document, I need to care about what the file system says.  Also I’ve heard arguments that Alfresco doesn’t handle dates external to Alfresco.  Well my network is my entire problem domain, not a single product.  If Alfresco is to be part of the solution it needs to work in that entire space rather than take a NIH approach.

Can anyone help with this or clear up possible misconceptions for me.



patrick
13 REPLIES 13

mrogers
Star Contributor
Star Contributor
This is changed to make it possible in, I think 3.4.    As you note above the bulk import works,  as do tools like RoboCopy over CIFS.

There still may be some use cases that don't or can't work, these need identifying and looking at.

mdonald
Champ in-the-making
Champ in-the-making
While Robocopy and successors address some use cases on Windows, I had a hard time finding a solution for Mac.  I found one using muCommander and wrote it up here:  http://oslawtools.org/?p=81 

In case the link is blocked, here is the relevant portion:

Ultimately the solution that worked was using a Java based file manager called muCommander.

On a fresh Yosemite install, I ran into a few hiccups.  First, I needed the applicable Java version, found here.  Next, OSX through completely useless errors describing muCommander as "broken" and needing deletion or "not working on this Mac" and the like.  These utterly unhelpful (deceitful, even) messages all related to the fact that OSX security settings prevented the application from running.  This was easily changed in System Preferences | Security & Privacy.  You should know what you are doing before changing those settings, but that doesn't mean you shouldn't be told that they are there.

MuCommander allows you to mount the Destination SMB share to Alfresco easily, and apparently by default preserves file timestamps.  It also has a more granular, file level left/right type GUI as well. Problem solved.

mrogers
Star Contributor
Star Contributor
Since this thread has come up again I thought I should also mention that there's an option in FileZilla to preserve original dates that works with Alfresco's FTP service.

mdonald
Champ in-the-making
Champ in-the-making
First, thanks to MRogers for the FTP tip (haven't tried it yet as I typically have FTP off on installs).

Apple seems to be regularly messing with the SMB implementation in OSX, probably in attempts to make sure Macs play nice with NAS devices and windows shares.  In any case, Apple made changes in OSX 10.10.2 and as of that OS, MuCommander on Mac no longer preserves file creation metadata from legacy file systems.  I now can't find any SMB or WebDAV approaches or applications to address this directly in MacOS.

MuCommander does preserve file create dates on both Win7 and Fedora 21.  I was able to put together a Mac solution using a Fedora 21 VM in Virtualbox on a Mac host that ,while a pain, doesn't involve any license cost.  The full post describing the steps will be here:  http://oslawtools.org/?p=98
-Mark D.