Project

General

Profile

RedmineRake » History » Version 9

Etienne Massip, 2013-04-24 09:50

1 3 Etienne Massip
h1. Rake tasks
2 1 Etienne Massip
3
p{color:red}. WIP
4
5
{{>toc}}
6
7
Redmine defines a set of "Rake":http://rake.rubyforge.org tasks for use in maintenance operations.
8
9 7 Etienne Massip
Information about tasks defined by the Ruby on Rails framework are accessible on "the dedicated page":http://guides.rubyonrails.org/command_line.html#rake.
10 1 Etienne Massip
11 7 Etienne Massip
h2. Batch job tasks
12
13
h3. @rake redmine:attachments:prune@
14
15 9 Etienne Massip
_Applicable starting from version version:2.3.0._
16 1 Etienne Massip
17 5 Trevor Jones
When a user attaches a file to an issue, a wiki page, etc., the file is immediately uploaded and is attached later on after the form has been submitted.
18
19 1 Etienne Massip
This task removes uploaded files left unattached (meaning the form has never been submitted) after one day.
20 5 Trevor Jones
21 7 Etienne Massip
h3. @rake redmine:email:read@
22 5 Trevor Jones
23
Read an email from standard input.
24
25 7 Etienne Massip
h3. @rake redmine:email:receive_imap@
26 5 Trevor Jones
27
Read emails from an IMAP server.
28
29 7 Etienne Massip
h3. @rake redmine:email:receive_pop3@
30 5 Trevor Jones
31
Read emails from an POP3 server.
32
33 7 Etienne Massip
h3. @rake redmine:fetch_changesets@
34 5 Trevor Jones
35
Fetch changesets from the repositories
36
37 7 Etienne Massip
h3. @rake redmine:send_reminders@
38 5 Trevor Jones
39
Send reminders about issues due in the next days.
40
See: [[RedmineReminderEmails]]
41
42 7 Etienne Massip
h3. @rake redmine:tokens:prune@
43 5 Trevor Jones
44
Removes expired tokens.
45
46 7 Etienne Massip
h3. @rake redmine:watchers:prune@
47 5 Trevor Jones
48 1 Etienne Massip
Removes watchers from what they can no longer view.
49 5 Trevor Jones
Available in versions version:2.3.0
50
51 7 Etienne Massip
h2. Other maintenance tasks
52 5 Trevor Jones
53 8 Etienne Massip
h3. @rake generate_secret_token@
54 5 Trevor Jones
55 7 Etienne Massip
Generates a secret token for the application.
56 5 Trevor Jones
57 7 Etienne Massip
h3. @rake db:encrypt@ and @rake db:decrypt@
58 5 Trevor Jones
59 7 Etienne Massip
Encrypts or decrypts SCM and LDAP passwords stored in the database.
60 5 Trevor Jones
61 7 Etienne Massip
h3. @rake redmine:attachments:move_to_subdirectories@
62 5 Trevor Jones
63 7 Etienne Massip
Moves attachments stored at the root of the file directory (ie.
64 5 Trevor Jones
Available in versions version:2.3.0
65
66 7 Etienne Massip
h3. @rake redmine:email:test[login]@
67 5 Trevor Jones
68 7 Etienne Massip
Send a test email to the user with the provided login name
69 5 Trevor Jones
70 7 Etienne Massip
h3. @rake redmine:permissions@
71 5 Trevor Jones
72 7 Etienne Massip
List all permissions and the actions registered with them
73 5 Trevor Jones
74 7 Etienne Massip
h3. @rake redmine:plugins@
75 5 Trevor Jones
76 7 Etienne Massip
Migrates and copies plugins assets.
77 5 Trevor Jones
78 7 Etienne Massip
h3. @rake redmine:plugins:assets@
79 5 Trevor Jones
80 7 Etienne Massip
Copies plugins assets into the public directory.
81 5 Trevor Jones
82 7 Etienne Massip
h3. @rake redmine:plugins:migrate@
83 5 Trevor Jones
84 7 Etienne Massip
Migrates installed plugins.
85 5 Trevor Jones
86 7 Etienne Massip
h2. Migrating from another BTS
87 5 Trevor Jones
88 7 Etienne Massip
h3. @rake redmine:migrate_from_mantis@
89 5 Trevor Jones
90 7 Etienne Massip
Mantis migration script
91 5 Trevor Jones
92 7 Etienne Massip
h3. @rake redmine:migrate_from_trac@
93 5 Trevor Jones
94 7 Etienne Massip
Trac migration script