mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Clean restore and backup script
This commit is contained in:
parent
83b41602f7
commit
60a41c7df7
2 changed files with 0 additions and 32 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue