Ralf Becker
81fe3b0472
* Backup: backup ascii columns as such, allways check and if necessary fix indexes on restore
2015-08-26 12:50:56 +00:00
Ralf Becker
14ccc8f0b5
added todo with url to php class allowing to stream a zip file of arbitrary size
2015-06-11 12:46:27 +00:00
Ralf Becker
3e47f37983
quote order column in backup and always quote "index" as it seems to be one of very little names not automatic recogniced in MySQL
2015-03-30 08:28:52 +00:00
Klaus Leithoff
92767dff1d
skip activesync debug.txt on filebackup (, if activated)
2015-02-06 14:33:33 +00:00
Ralf Becker
baae7ff596
* Backup: backing up bool columns now for all databases as 1 or 0, but understanding PostgreSQL "t" or "f" too
2015-01-30 12:48:13 +00:00
Ralf Becker
89fd9e35cf
* Backup: fixed broken backup of tables without an auto index
2015-01-15 16:34:27 +00:00
Ralf Becker
2c71852545
fix for php 5.6+ deprecating mbstring.internal_encoding in favor or default_charset
2014-12-08 19:16:44 +00:00
Ralf Becker
debe67be86
* Admin/Setup: ignoring doublicate rows from old backups
2014-11-13 11:51:49 +00:00
Ralf Becker
3af8b4806b
insert/update timezones without sqlite extension
2014-10-07 21:04:58 +00:00
Ralf Becker
b86a4b17dd
fall back to own db_backup for installing timezones, if sqlite extension is not available or broken
2014-10-07 13:15:04 +00:00
Ralf Becker
25eae3cd06
fix IDE warnings and generate an install_id, if there is none
2014-09-30 11:59:31 +00:00
Ralf Becker
d0a9307168
* PostgreSQL/Admin/Setup: backup stopped with SQL error
2014-08-26 14:03:18 +00:00
Ralf Becker
35e5ff6d6e
* Admin: restore from admin was not working (worked only from setup)
2014-07-25 09:13:19 +00:00
Ralf Becker
eeafdea313
* Admin/Setup: restore of 14.1 backup was not working (backup file itself is correct)
...
caused by typo in json_decode of schema
2014-07-23 07:15:06 +00:00
Ralf Becker
f472ff10ee
fixed PHP Fatal error: Call to a member function MetaTables() on a non-object, when non-default apps like esyncpro got installed/updated
2014-07-15 11:07:26 +00:00
Ralf Becker
2dd0625ebe
* Backup: backup could contain rows multiple times (which caused restore to fail)
2014-07-11 17:35:46 +00:00
Ralf Becker
d6a5c93e01
new php_safe_unserialize function refusing to unserialize objects and using it for config, preferences and DB-backups
2014-06-26 17:38:29 +00:00
Klaus Leithoff
0d458c8119
disable transaction for mysql for restore, as a failure during restore may lead to an empty database, as drop table is not transactional for mysql
2014-02-17 16:16:44 +00:00
Ralf Becker
34f3c8bf1f
* Admin/Setup: fixed restore always converted longtext columns to text and therefore truncating them to 64k on MySQL, also fixed backup to report them correctly in backup of schema
2013-01-21 09:49:59 +00:00
Ralf Becker
b514745d01
* Admin: new function "Clear cache and register hooks", also called automatic when restoring a backup
2012-10-31 13:56:40 +00:00
Ralf Becker
dc7259a59c
invalidate categories cache after DB restore
2012-07-03 08:16:52 +00:00
Ralf Becker
d0f097e1ec
chunk size for number of rows to query was far to low for huge tables like egw_history_log which can be a couple of million rows, backup took far to long
2012-07-03 07:05:55 +00:00
Ralf Becker
f88aa3738b
* Admin/DB-Backup: querying only chunks for 100 rows, to not run into memory limit on huge tables
2012-06-30 15:18:49 +00:00
Ralf Becker
3418c5284e
* Backup: fix sometimes not working restore (seems like an internal error in preg_match, causing Apache to run at 100% CPU never finishing) for php 5.3+
2012-06-17 10:10:46 +00:00
Ralf Becker
c3e0a2ab15
* Setup/Admin: restoring 10 rows per sql statement to speed up restore
2012-06-10 12:38:35 +00:00
Ralf Becker
797a412ec8
fix not working update from 1.6 by running register-all-hooks after restore (old 1.6 wiki_bo::search_link hook can not run in setup, so we need the new hook)
2012-04-13 14:33:43 +00:00
Ralf Becker
a548f444e1
have to use schema from backup itself, not (autoloaded) current schema
2012-04-13 06:09:51 +00:00
Ralf Becker
d85cffb5e8
fixed since r38811 not working restore of backups
2012-04-12 13:25:27 +00:00
Ralf Becker
b28a0ced08
check and reset cookie configuration, if it does not match current enviroment
2012-03-15 12:55:59 +00:00
Ralf Becker
f00ba4dc9a
do not restore install_id, as that would give two systems with identical install_id
2011-05-07 17:09:52 +00:00
Ralf Becker
3afe73c701
do NOT allow to change backup_files config if backup is called outside of setup, as it can have a huge impact on the server
2011-01-20 22:17:06 +00:00
Klaus Leithoff
bd25eead83
assumption if strlen>24 and not starting with " it is to be treated as bas64 encoded, falls short of postgres timestamps length; testing for strlen>26 now
2010-11-08 13:24:01 +00:00
Ralf Becker
a65406b88b
* restore to current system charset, to force all restores to utf-8, and do NOT halt on sql errors in restore
2010-08-19 08:07:06 +00:00
Ralf Becker
10cf1b2b8e
* not overwriting system configuration (eg. pathes) on restore, which break a running system and if called from within EGroupware update the restored backup, in case it is an older version
2010-08-15 15:46:23 +00:00
Hans-Jürgen Tappe
83e867ef01
Disable verbose debug messages on restore.
2010-07-31 08:03:32 +00:00
Hans-Jürgen Tappe
2606c0b439
Remove duplicate return.
2010-01-22 21:43:50 +00:00
Hans-Jürgen Tappe
9c5fd08d90
Fix backup->restore() as discussed on the devel list:
...
- Internationalization of error messages.
- Typos
- Add missing code documentation
- Respect return code of db->transaction_commit()
- Add missing filename arguments in restore() calls.
2010-01-22 21:39:19 +00:00
Klaus Leithoff
577ce3e8df
improve db_backup/restore
2010-01-22 13:52:04 +00:00
Klaus Leithoff
30abf86181
only warn, for no ziparchive, if you want to backup files
2010-01-19 15:27:30 +00:00
Christian Binder
501e715561
re-added support for gzipped and unzipped files for db restore on empty installations - was (maybe accidentally) removed with housekeeping feature
2009-10-12 13:28:28 +00:00
Ralf Becker
4e21b766b9
- reworked old browser class to use have only static methods
...
--> recogniced it's so old and dusty, it does not make sense any more
--> moved content_header() method to html class
- fixed calls of browser->content_header to use html::content_header
instead
2009-10-11 11:37:46 +00:00
Ralf Becker
868c89e606
"- making csv_spilt and escape_date methods public static (to use them in other classes)
...
- fixed not working calls to remove_dir_content"
2009-09-14 17:48:58 +00:00
Klaus Leithoff
44a53ee05b
backup housekeeping feature from H.J.Tappe together with a feature to backup egroupware the files - tree from Christian Fueller; The File-backup feature is testet against relatively small eGroupware Instances; It requires ZipArchive (If you dont have that, the backup should run, but without backup of files); AND if you enable it backup takes a) more time to run and restore b) way more space, so you should enable housekeeping
2009-08-27 12:46:12 +00:00
Ralf Becker
6f442ea296
"check if we really need to convert the charset, as it's not perfect and can do some damage"
2008-11-23 13:08:06 +00:00
Klaus Leithoff
42e4f1facd
egw_async: handling the ##last-check-run## problem during restore. The line will be skipped.
2008-07-25 09:37:15 +00:00
Ralf Becker
16c5ce05ac
fixed "There's NO ADOdb object!" error in DB backup/restore via
...
setup-cli.php
2008-07-21 09:40:58 +00:00
Ralf Becker
82f2b4e91f
global bytes() function returning the number of bytes of a string, independent of mbstring available and mbstring.func_overload set
2007-09-29 09:17:42 +00:00
Ralf Becker
c4a17cf53f
"fixed date-type problem in restore reported on the german list"
2007-07-03 08:21:29 +00:00
Ralf Becker
5e59f78c8f
"fixed bug reported on the list: not working backup&restore because of blob columns: they get base64 encoded now"
2007-06-03 17:57:40 +00:00
Ralf Becker
341eb15afb
fixed not working system-charset conversation (now removed) with backup and re-install of backup with a different charset. A setable client encoding is used if availible.
2005-12-01 23:18:07 +00:00