[TYPO3-core] "uploads/" to "FAL" Migration - technical detail question

bernd wilke t3ng at bernd-wilke.net
Tue Dec 11 13:58:02 CET 2012


Am 28.11.2012 15:07, schrieb Benjamin Mack:
> Hey devs,
>
> I'm currently working on an improvement of the install tool upgrade
> wizard of migrating all uploads/* records to fileadmin/_migrated.
>
> Currently, this wizard is pretty "dumb", just moving the files over,
> indexing the file and add the sys_file_reference.
>
> So, one of the (for me) largest downsides of uploads/ was that the same
> file was added multiple times. I have a change almost ready, where the
> migration wizard first creates a SHA1 of the uploads/XYZ.jpg file, and
> then checks if there is a file in the target storage with the same SHA1.
> The existing file is then used, and not copied over again.
>
> What do you think? Is this helpful? Or is the "plain" behaviour better
> in most cases?
>
> All the best,
> Benni.
>
One solution to avoid multiple identical files are hardlinked files.
This is possible with cron-scripts running on the server to compact a 
TYPO3 installation.


for the migration it might be nice to have a choice between identical 
files changed into one reference or each file into its own reference.

Those who do the migration should know which behaviour fits best to 
their installation.

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-team-core mailing list