mirror of
https://github.com/YunoHost-Apps/flohmarkt_ynh.git
synced 2024-09-03 18:36:30 +02:00
small corrections during backup/restore tests
This commit is contained in:
parent
664e7475f1
commit
5e4c3fdd39
3 changed files with 4 additions and 8 deletions
|
@ -15,9 +15,8 @@ ynh_backup --src_path="${flohmarkt_log_dir}"
|
||||||
|
|
||||||
# for the following backups we'll want to stop flohmarkt and couchdb
|
# for the following backups we'll want to stop flohmarkt and couchdb
|
||||||
# to guarentee a consistant state
|
# to guarentee a consistant state
|
||||||
ynh_print_info --message="Stopping flohmarkt and couchdb to backup data..."
|
ynh_print_info --message="Stopping flohmarkt to backup data..."
|
||||||
flohmarkt_ynh_stop_service
|
flohmarkt_ynh_stop_service
|
||||||
flohmarkt_ynh_stop_couchdb
|
|
||||||
|
|
||||||
# https://codeberg.org/ChriChri/flohmarkt_ynh/issues/24
|
# https://codeberg.org/ChriChri/flohmarkt_ynh/issues/24
|
||||||
# since this might be re-installed as a dependency during 'remove' and
|
# since this might be re-installed as a dependency during 'remove' and
|
||||||
|
@ -30,9 +29,6 @@ flohmarkt_ynh_stop_couchdb
|
||||||
# ynh_backup --src_path="$data_dir" --is_big
|
# ynh_backup --src_path="$data_dir" --is_big
|
||||||
ynh_backup --src_path="$flohmarkt_data_dir"
|
ynh_backup --src_path="$flohmarkt_data_dir"
|
||||||
|
|
||||||
ynh_print_info --message="Starting couchdb..."
|
|
||||||
flohmarkt_ynh_start_couchdb
|
|
||||||
|
|
||||||
ynh_print_info --message="Dumping couchdb..."
|
ynh_print_info --message="Dumping couchdb..."
|
||||||
flohmarkt_ynh_dump_couchdb
|
flohmarkt_ynh_dump_couchdb
|
||||||
|
|
||||||
|
|
|
@ -63,8 +63,8 @@ ynh_script_progression --message="Removing data directory..." --weight=2
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
|
||||||
# remove symlinks
|
# remove symlinks
|
||||||
ynh_secure_remove "$flohmarkt_sym_install"
|
ynh_secure_remove --file="$flohmarkt_sym_install"
|
||||||
ynh_secure_remove "$flohmarkt_sym_data_dir"
|
ynh_secure_remove --file="$flohmarkt_sym_data_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -33,7 +33,7 @@ ynh_restore_file --origin_path="$flohmarkt_install"
|
||||||
|
|
||||||
# RESTORE THE DATA DIRECTORY
|
# RESTORE THE DATA DIRECTORY
|
||||||
ynh_script_progression --message="Restoring the data directory..." --weight=1
|
ynh_script_progression --message="Restoring the data directory..." --weight=1
|
||||||
ynh_restore_file --origin_path="$flohmarkt_data_dir=" --not_mandatory
|
ynh_restore_file --origin_path="$flohmarkt_data_dir" --not_mandatory
|
||||||
mkdir -p $data_dir
|
mkdir -p $data_dir
|
||||||
|
|
||||||
# restore logfiles
|
# restore logfiles
|
||||||
|
|
Loading…
Reference in a new issue