Révision 38e8e479 doc/index.rst

b/doc/index.rst
228 228
and the file itself.
229 229

  
230 230

  
231
Reporting Bugs
232
--------------
233

  
234
If you think you have found a bug and would like to report the problem, then please ensure you have applied all applicable updates. If this is the case, send a description of your problem and some screenshot to florent.chuffart on its ens-lyon.fr email. Thank you for your contribution.
235

  
236

  
237

  
231 238
Backing up the Mysql Database and Stored Files
232 239
----------------------------------------------
233 240

  
234
We provide two level of backup. The first only dump the mySQL database and the second also add the uploaded files (plasmid_files raw_dirs directories in your /var/www/labstocks directory). These two features are available on the *home* page. The two links in the sentence *Backup the entire system or only the database NOW!* allow any user to download the requested backups. It could be use full for an admin to integrate it in a robust file backup system using for example a cron that regularly pull the archives (*wget http://.../labstocks/backup.php?FULL_BACK=1*). 
241
We HIGHLY RECOMMEND THAT YOU REGULARLY BACKUP you MyLabStocks database. We provide two levels of backup. The first only dump the mySQL database and the second also add the uploaded files (plasmid_files raw_dirs directories in your /var/www/labstocks directory). These two features are available on the *home* page. The two links in the sentence *Backup the entire system or only the database NOW!* allow any user to download the requested backups. It could be useful for an administrator to integrate it in a robust file backup system using for example a cron that regularly pull the archives (*wget http://.../labstocks/backup.php?FULL_BACK=1*). 
235 242

  
243
How To Restore System From Backup
244
---------------------------------
236 245

  
246
On the targeted server, you can restore database from the last backup (file ''labstocks_db.sql'') by typing the following command in a terminal. It drops existing tables, creates new one and restore data. You have to adapt user password and database name according to your setting.
237 247

  
238
Reporting Bugs
239
--------------
248
.. code:: bash
240 249

  
241
If you think you have found a bug and would like to report the problem, then please ensure you have applied all applicable updates. Else, 
242
send a description of your problem and some screenshot to florent.chuffart on its ens-lyon.fr email. Thank you for your contribution.
250
  sudo mysql --user=root --password=root labstocks_db < labstocks_db.sql 
251
..
252

  
253

  
254
To restore uploaded file, you have to copy backuped directories (''plasmid_files'' and ''raw_dirs'') to your labstocks directory. To do that, on the targeted server type the following commands in a terminal.
255

  
256
.. code:: bash
257

  
258
  sudo cp -r plasmid_files raw_dirs /var/www/labstocks/. 
259
..
243 260

  
244 261

  
262
Extend Database
263
---------------
245 264

  
265
MyLabstock is delivrer under a free licence. Feel free to modify and extend it as to adapt it to your your own lab. To do that you could easily create new table using phpMyAdmin (http://your_server/phpmyadmin) http://http://your_server/yourserver)ou mysql command line tool (documentation here http://dev.mysql.com/doc/refman/5.6/en/mysql.html). MyLabStocks uses the  framework phpMyEdit to manaeg the user interface. Use the provided tool http://your_server/phpMyEditSetup.php to generate code. For any question please refer to the embeded documention (http://your_server/labstocks/doc/html/).
246 266

  

Formats disponibles : Unified diff