1
0
Fork 0
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:
Maniack Crudelis 2017-01-08 21:37:51 +01:00 committed by GitHub
parent 8117339356
commit 7accc9a6e6

View file

@ -55,7 +55,11 @@ sudo useradd -c "$app system account" \
# Restore the app files # Restore the app files
sudo cp -a ./www "$DESTDIR" sudo cp -a ./www "$DESTDIR"
sudo mkdir -p "$DATADIR" 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 # Create and restore the database
ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass" ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass"