odain
27c397cc1a
N°4225/4227: recommit lost restore.php + refactor duplicated code for cli restore/backup in common-cli.execution.php
2021-09-09 16:57:42 +02:00
odain
095c975ec6
N°4227 / N°4225 - require cleanup + fix manual restore
2021-08-12 16:25:50 +02:00
odain
2c026fa891
N°4225 - Protect manual backups from cron (and vice versa) - protect any backup from cron/db updates and release readonly mode only when backup set it itself
2021-08-12 16:25:50 +02:00
odain
e3dc1b77cc
N°4225 - Protect manual backups from cron (and vice versa) - minimal work ie protect manual backup from cron only
2021-08-12 16:25:50 +02:00
Molkobain
8dd96ea636
Copyright year bump
2021-03-15 09:29:45 +01:00
Pierre Goiffon
b7136c0b7a
N°2214 Add PHP check in CLI scripts
...
It is quite common that the PHP interpreter that is launched in CLI is different that the one used by the webserver. So iTop code launched by CLI could run in a context that doesn't meet iTop requirements !
This adds in the following scripts the same control that is done on the setup wizard first step :
* cron.php
* backup, check-backup
* export, exportv2
* bulk import
* synchro-exec, synchro-import
If the check throws at least one error then the script is stopped with an appropriate message, and a log is made (IssueLog, Error level, CLI channel)
(cherry picked from commit c768e18e2b : no risk taken for 2.7.1, so cherry picked for 2.8.0)
2020-06-15 15:20:17 +02:00
bruno DA SILVA
08c1f4f072
autoload rework
...
- bootstrap.inc.php is now included by approot.inc.php
- remove all unescessaries includes of bootstrap.inc.php
- in bootstrap.inc.php autoload can be bypassed using a feature flag because "why not"
2019-11-08 16:51:57 +01:00
Molkobain
947e26d864
Internal: Change how the bootstrap.inc.php file is included in endpoints (This completes commit ec095896)
2019-08-13 17:38:51 +02:00
Molkobain
ec09589646
N°2439 Add real autoloader for framework files (not modules)
2019-08-13 13:46:19 +02:00
Pierre Goiffon
843c06b007
🚸 improves backup/check-backup
...
* backup.php now handles calls from datamodels (approot)
* fix check-backup sample cli
* better error on check-backup invalid check_ticket_itop cli parameter
2018-12-05 11:37:42 +01:00
Pierre Goiffon
d7fc003216
backup.php : some little PHPDoc
...
SVN:trunk[5660]
2018-04-13 10:09:31 +00:00
Romain Quetiez
e31fa066fc
N.612 Backup files could not exceed 4Gb (technology limitation). The fix consists in archiving the backup as a tar.gz instead of a zip. As a consequence, installing iTop now requires TWO additional PHP modules: phar/zlib. The zip module remains mandatory because it is used in other places. The restore utility accepts both legacy zip files and brand new tar.gz files. DBBackup::CreateZip is deprecated in favor of DBBackup::CreateCompressedBackup. DBRestore::RestoreFromZip is deprecated in favor of DBRestore::RestoreFromCompressedFile (which autodetects the format for backward compatibility).
...
SVN:trunk[4803]
2017-07-06 15:26:03 +00:00
Denis Flaven
030b4fa380
Enhancement: support injection of new modules treated as data.
...
SVN:trunk[3525]
2015-04-01 15:53:05 +00:00
Romain Quetiez
50ca6cdd0f
Backup tools disabled when the demo mode is active
...
SVN:trunk[3406]
2014-11-03 15:12:47 +00:00
Romain Quetiez
a7d3a5a488
New functionality: data backup / restore. By default, performs a daily backup, keeping the five last backups. Allows manual backups too.
...
SVN:trunk[3402]
2014-11-03 09:18:54 +00:00