diff --git a/scripts/backup b/scripts/backup index 2c5dc4b..558fe8a 100644 --- a/scripts/backup +++ b/scripts/backup @@ -20,20 +20,6 @@ domain=$(ynh_app_setting_get ${app} domain) db_pwd=$(ynh_app_setting_get ${app} mysqlpwd) # # Backup app files - -# mkdir -p "${BACKUP_DIR}/www" -# cp -a $final_path/. "${BACKUP_DIR}/www" -# -# # Backup conf files -# mkdir -p "${BACKUP_DIR}/conf" -# cp -a /etc/nginx/conf.d/$domain.d/${APP}.conf "${BACKUP_DIR}/conf/${APP}.conf" -# cp -a /etc/init.d/seafile-server "${BACKUP_DIR}/conf/seafile-server" -# -# # Backup data -# mkdir -p "${BACKUP_DIR}/data" -# cp -a /home/yunohost.app/seafile-data/. "${BACKUP_DIR}/data" - - ynh_backup $final_path ynh_backup /home/yunohost.app/seafile-data "data" 1 ynh_backup /etc/nginx/conf.d/$domain.d/${app}.conf diff --git a/scripts/restore b/scripts/restore index d9820a5..f1184d8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -26,24 +26,6 @@ ynh_webpath_available $domain $path || ynh_die "$domain/$path is not available, # Restore dependencies install_dependance -# # Restore app files -# final_path=$final_path -# mkdir -p $final_path -# cp -a "${BACKUP_DIR}/www/." $final_path -# chown -R $seafile_user:$seafile_user $final_path -# -# # Restore conf files -# cp -a "${BACKUP_DIR}/conf/${app}.conf" /etc/nginx/conf.d/$domain.d/${app}.conf -# cp -a "${BACKUP_DIR}/conf/${app}" /etc/logrotate.d/${app} -# cp -a "${BACKUP_DIR}/conf/seafile-server" /etc/init.d/seafile-server -# chmod +x /etc/init.d/seafile-server -# -# # Restore data -# seafile_data=/home/yunohost.app/seafile-data -# mkdir -p $seafile_data -# cp -a "${BACKUP_DIR}/data/." /home/yunohost.app/seafile-data/. -# chown -R $seafile_user:$seafile_user $seafile_data - # Restore all config and data ynh_restore