mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
fix backup
This commit is contained in:
parent
00e0369299
commit
4e82eba409
1 changed files with 2 additions and 2 deletions
|
@ -14,11 +14,11 @@ db_pwd=$(sudo yunohost app setting ${APP} db_pwd)
|
||||||
|
|
||||||
# Backup app files
|
# Backup app files
|
||||||
sudo mkdir -p "${BACKUP_DIR}/www"
|
sudo mkdir -p "${BACKUP_DIR}/www"
|
||||||
sudo cp -a /var/www/$app/. "${BACKUP_DIR}/www"
|
sudo cp -a /var/www/${APP}/. "${BACKUP_DIR}/www"
|
||||||
|
|
||||||
# Backup conf files
|
# Backup conf files
|
||||||
sudo mkdir -p "${BACKUP_DIR}/conf"
|
sudo mkdir -p "${BACKUP_DIR}/conf"
|
||||||
sudo cp -a /etc/nginx/conf.d/$domain.d/$app.conf "${BACKUP_DIR}/conf/${APP}.conf"
|
sudo cp -a /etc/nginx/conf.d/$domain.d/${APP}.conf "${BACKUP_DIR}/conf/${APP}.conf"
|
||||||
sudo cp -a /etc/logrotate.d/${APP} "${BACKUP_DIR}/conf/${APP}"
|
sudo cp -a /etc/logrotate.d/${APP} "${BACKUP_DIR}/conf/${APP}"
|
||||||
sudo cp -a /etc/init.d/seafile-server "${BACKUP_DIR}/conf/seafile-server"
|
sudo cp -a /etc/init.d/seafile-server "${BACKUP_DIR}/conf/seafile-server"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue