Project

General

Profile

rake task to distribute files to year folders?

Added by Ivan Cenov about 11 years ago

Redmine 2.3.0 distributes files in year folders. What is the name of the task that does this when upgrading from 2.2.3 to 2.3.0?

(or this action happens at first start of 2.3.0?)


Replies (6)

RE: rake task to distribute files to year folders? - Added by Ivan Cenov about 11 years ago

I saw it

rake redmine:attachments:move_to_subdirectories
in #5298

RE: rake task to distribute files to year folders? - Added by Mischa The Evil about 11 years ago

Indeed. It might be good to provide references about this in the documentation (RedmineUpgrade)...

RE: rake task to distribute files to year folders? - Added by Ivan Cenov about 11 years ago

Moreover, list of all rake tasks and what they do.

RE: rake task to distribute files to year folders? - Added by Pavel Potcheptsov about 11 years ago

Should I run this task after upgrade to 2.3.0?
Then stop redmine and run rake redmine:attachments:move_to_subdirectories in the redmine root folder.
Am I right?
And after this all attachments in redmine will be pointed to new folder's structure in /files.
Is it safe action? We have 10Gb of attachments.

RE: rake task to distribute files to year folders? - Added by Ivan Cenov about 11 years ago

I proceeded this way, as a part of upgrading process I executed

rake redmine:attachments:move_to_subdirectories
after database migration. Then I saw that the new folder structure was created and the files were moved there.

RE: rake task to distribute files to year folders? - Added by Pavel Potcheptsov about 11 years ago

Ivan, thanks for your feedback, I'll do such thing also.
May I ask you a question, did you see such bugs after update to 2.3.0:
http://www.redmine.org/issues/13546
http://www.redmine.org/issues/13547
?
Can you confirm it?

    (1-6/6)