mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
backup_core_only restore
This commit is contained in:
parent
8117339356
commit
7accc9a6e6
1 changed files with 5 additions and 1 deletions
|
@ -55,7 +55,11 @@ sudo useradd -c "$app system account" \
|
|||
# Restore the app files
|
||||
sudo cp -a ./www "$DESTDIR"
|
||||
sudo mkdir -p "$DATADIR"
|
||||
sudo cp -a ./data/. "$DATADIR"
|
||||
if [ -d ./data ] # Le dossier data est restauré seulement si il existe. Si le backup a été fait avec l'option backup_core_only, ce dossier n'a pas été sauvegardé.
|
||||
then
|
||||
sudo cp -a ./data/. "$DATADIR"
|
||||
fi
|
||||
ynh_app_setting_delete $app backup_core_only # Retire l'option backup_core_only du fichier settings.yml le cas échéant
|
||||
|
||||
# Create and restore the database
|
||||
ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"
|
||||
|
|
Loading…
Add table
Reference in a new issue