Révision 38e8e479 README
b/README | ||
---|---|---|
266 | 266 |
itself. |
267 | 267 |
|
268 | 268 |
|
269 |
Reporting Bugs |
|
270 |
-------------- |
|
271 |
|
|
272 |
If you think you have found a bug and would like to report the |
|
273 |
problem, then please ensure you have applied all applicable updates. |
|
274 |
If this is the case, send a description of your problem and some |
|
275 |
screenshot to florent.chuffart on its ens-lyon.fr email. Thank you for |
|
276 |
your contribution. |
|
277 |
|
|
278 |
|
|
269 | 279 |
Backing up the Mysql Database and Stored Files |
270 | 280 |
---------------------------------------------- |
271 | 281 |
|
272 |
We provide two level of backup. The first only dump the mySQL database |
|
273 |
and the second also add the uploaded files (plasmid_files raw_dirs |
|
274 |
directories in your /var/www/labstocks directory). These two features |
|
275 |
are available on the *home* page. The two links in the sentence |
|
276 |
*Backup the entire system or only the database NOW!* allow any user to |
|
277 |
download the requested backups. It could be use full for an admin to |
|
278 |
integrate it in a robust file backup system using for example a cron |
|
279 |
that regularly pull the archives (*wget |
|
280 |
http://.../labstocks/backup.php?FULL_BACK=1*). |
|
282 |
We HIGHLY RECOMMEND THAT YOU REGULARLY BACKUP you MyLabStocks |
|
283 |
database. We provide two levels of backup. The first only dump the |
|
284 |
mySQL database and the second also add the uploaded files |
|
285 |
(plasmid_files raw_dirs directories in your /var/www/labstocks |
|
286 |
directory). These two features are available on the *home* page. The |
|
287 |
two links in the sentence *Backup the entire system or only the |
|
288 |
database NOW!* allow any user to download the requested backups. It |
|
289 |
could be useful for an administrator to integrate it in a robust file |
|
290 |
backup system using for example a cron that regularly pull the |
|
291 |
archives (*wget http://.../labstocks/backup.php?FULL_BACK=1*). |
|
281 | 292 |
|
282 | 293 |
|
283 |
Reporting Bugs
|
|
284 |
-------------- |
|
294 |
How To Restore System From Backup
|
|
295 |
---------------------------------
|
|
285 | 296 |
|
286 |
If you think you have found a bug and would like to report the |
|
287 |
problem, then please ensure you have applied all applicable updates. |
|
288 |
Else, send a description of your problem and some screenshot to |
|
289 |
florent.chuffart on its ens-lyon.fr email. Thank you for your |
|
290 |
contribution. |
|
297 |
On the targeted server, you can restore database from the last backup |
|
298 |
(file ''labstocks_db.sql'') by typing the following command in a |
|
299 |
terminal. It drops existing tables, creates new one and restore data. |
|
300 |
You have to adapt user password and database name according to your |
|
301 |
setting. |
|
302 |
|
|
303 |
sudo mysql --user=root --password=root labstocks_db < labstocks_db.sql |
|
304 |
|
|
305 |
To restore uploaded file, you have to copy backuped directories |
|
306 |
(''plasmid_files'' and ''raw_dirs'') to your labstocks directory. To |
|
307 |
do that, on the targeted server type the following commands in a |
|
308 |
terminal. |
|
309 |
|
|
310 |
sudo cp -r plasmid_files raw_dirs /var/www/labstocks/. |
|
311 |
|
|
312 |
|
|
313 |
Extend Database |
|
314 |
--------------- |
|
315 |
|
|
316 |
MyLabstock is delivrer under a free licence. Feel free to modify and |
|
317 |
extend it as to adapt it to your your own lab. To do that you could |
|
318 |
easily create new table using phpMyAdmin |
|
319 |
(http://your_server/phpmyadmin) |
|
320 |
http://http://your_server/yourserver)ou mysql command line tool |
|
321 |
(documentation here |
|
322 |
http://dev.mysql.com/doc/refman/5.6/en/mysql.html). MyLabStocks uses |
|
323 |
the framework phpMyEdit to manaeg the user interface. Use the |
|
324 |
provided tool http://your_server/phpMyEditSetup.php to generate code. |
|
325 |
For any question please refer to the embeded documention |
|
326 |
(http://your_server/labstocks/doc/html/). |
Formats disponibles : Unified diff