Commit graph

21 commits

Author SHA1 Message Date
Étienne Mollier
f0440fbd6b Dynamically evaluate proper mariadb-server-<version> 2019-08-15 15:12:06 +02:00
Alexandre Aubin
d495d315c0 [fix] Loading only one helper file leads to errors because missing getopts 2019-02-16 16:36:35 +01:00
ljf (zamentur)
ff56535568
[fix] Mail permission issue after restore 2018-06-21 12:48:52 +02:00
Alexandre Aubin
2f0db53d8c We have mariadb-server-10.1 now 2018-05-08 19:01:25 +02:00
ljf (zamentur)
d3eeb4bbc7 [enh] Refactor backup management to pave the way to borg (#275)
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* Adding skeleton for remaining tests to write
* [enh] Use a csv to list file to backup
* [enh] Use csv python module
* [wip] Backup refactoring
* [wip] Backup class refactoring
* [enh] Add archivemount dependencies
* [wip] Restore refactoring
* [fix] Some error in this refactoring
* [fix] Missing backup key translation
* [fix] Bad YNH_CWD in hook backup
* [fix] App backup part was broken
* [fix] Restore operation was broken
* [fix] No compressed backup
* [fix] Don't commit backup path into csv if app backup fail
* [fix] Default backup collect_dir should be in tmp subdir
* [enh] Simplify a copy code
* [enh] Build backup info from properties
* [enh] Improve comments presentation
* Adding first tests for backup/restore
* Adding more backup/restore app test scenario
* [enh] Separate BackupMethods in distinct class
* Adding test of restoring a wordpress archive from 2.4
* [fix] Be able to delete backup link too
* [fix] Bad internationalization key
* [fix] Edge case with empty mysql pwd restore
* [fix] Unset var in restore
* [fix] Edge case with empty mysql pwd restore
* Adding test for backup crash handling
* Cleaning tests + checking tmp dir is empty
* [fix] Missing tmp in backup path
* [fix] Error on reading backup csv
* Adding test of failed restore
* Adding tests when not enough space available
* Simplifying tests using markers
* [fix] ynh backup/restore helpers with only one arg
* [fix] Unmount subdir with python
* [enh] Improve backup size management
* [fix] None object in backup
* [enh] Remove dead code
* [fix] Missing locales
* [enh] Adapat test about needed space
* [fix] Pass some test
* [enh] Remove dead code
* [enh] Pass all test
* [enh] Adding test that backups contains what's expected
* Fix typo in tests
* [fix] Bad documentation
* Adding skeleton for remaining tests to write
* [enh] Add comment
* [enh] Use len in place of implicit {} == False
* [enh] Add comment
* [enh] Add comment
* [enh] Refactoring on _collect_app_files
* [fix] Replay e1a507 deleted by rebase
* [fix] ynh_restore helper
* Renaming 'hooks' terminology to 'system' where it makes sense
* Propagating new --system/--ignore-system to actionmap
* Adding more tests + clarifying some functions and messages
* Factorize out the definition and validation of backup/restore targets
* Add missing key
* Use list comprehension instead of dirty loops
* [enh] Add docstring in BackupManager
* [enh] Add docstring on BackupMethod(s)
* [fix] Remove deadcode
* [fix] Remove debug message
* [enh] Add comments on RestoreManager
* [enh] Add comments on backup constants
* Adding a proper report/result for each backup target
* Skipping tests not implemented yet
* Fixing little mistake from merging
* [fix] Support different fs or archivemount error
* [enh] Backup helpers readability
* [fix] Copy backup method
* [fix] Deprecated warning always displayed
* [enh] Retrieve info.json file inside tar.gz
* Trying to reorganize methods with sections for readability
* [enh] Support archivemount failure
* [fix] Missing env var for system part restore helpers
* Clarifying disk usage / free space computation
* [enh] Refactoring around backup set_targets()
* Clarifying structure of backup_create and backup_restore
* Move RestoreManager between BackupManager and BackupMethods
* [fix] Missing locales
* [fix] System part restore if archivemount failure
* [enh] Extract all conf instead of specific code
* [fix] Other output directory (compressed archive)
* [enh] Add test for uncompressed backup
* [fix] Compressed backup in an existing output directory
* [fix] Return size for retro-compatibility
* [fix] Mountpoint check aborting script when called with -eu
* [fix] Avoid failure test with set -eu
* [fix] locale strings missing/bad arguments
* Check free space before mount
* [fix] ynh_restore_helpers with existing archive path
* Adding skeletons for moar tests
* Fixing some weird bug in _get_archive_path
* Adding a regen-conf at the end of system restore
* Adding tests of system restore from 2.4
* Have a class dedicated to target management
* Cleaning tests
* Misc formatting
* More meaningful variable names inside app restore
* [fix] can't call source ../settings/scripts/_common.sh in app backup
* [fix] ynh_install_app_dependencies is not compatible with readonly mount
* [fix] Remove temporary file
2017-06-02 13:41:16 +02:00
Jérôme Lebleu
1430fa133a [doc] Be more verbose when reset the MySQL root password 2016-04-25 15:26:11 +02:00
Jérôme Lebleu
689b390342 [fix] Restore current_host and use only one backup path for it 2016-04-22 14:54:41 +02:00
Jérôme Lebleu
5af988052d [fix] Restore MySQL password for root user (bugfix #194) 2016-04-22 14:36:21 +02:00
Julien Malik
1300f4c0ca [fix] fix lintian script-not-executable 2016-03-12 00:20:52 +01:00
zamentur
ea5ffb8498 Merge remote-tracking branch 'upstream/unstable' into unstable
Conflicts:
	data/hooks/restore/05-conf_ldap
2016-02-08 22:52:28 +01:00
zamentur
b2a2a05598 [fix] Slapd.d directory was empty after restore 2016-02-08 22:41:55 +01:00
zamentur
b70cff29f7 [fix] Backup/restore without postinstall failed 2016-02-08 22:39:17 +01:00
Jérôme Lebleu
141d704a04 [fix] Review LDAP backup and restore hooks
The configuration is now saved using slapcat instead of trying to generate
it from slapd.conf - which generally fail at restoration.
Also, a backup of configuration and database is made before the restoration,
which allows to return to a "working" state if it fails.
2016-01-23 19:15:13 +01:00
zamentur
141937efdb [enh] Don't restore apps nginx conf in conf_nginx restore script (it's
done by apps)
2015-10-04 12:48:56 +02:00
zamentur
d83f81be66 [fix] Restore with the app restore script from the backup 2015-10-03 22:17:02 +02:00
zamentur
4357b936c3 [fix] Restore mysql password from good directory 2015-10-02 22:57:06 +02:00
zamentur
28d7b7db63 [fix] Save and restore mysql password 2015-10-02 19:46:18 +02:00
zamentur
a0199d060b [enh] Introduce data and conf hooks category 2015-10-02 18:57:10 +02:00
zamentur
c1e97a17d3 [enh] Disable restore of all mysql, it will be done by apps 2015-09-30 22:27:36 +02:00
Julien Malik
ce4c54ad88 [lintian] fix script-not-executable for backup/restore hooks 2015-09-10 08:43:23 +02:00
Jérôme Lebleu
3a76e95c7f [enh] Add debian subdirectory and change root yolo structure 2015-01-31 23:45:34 +01:00