BACKUP PROBLEM: Nextcloud backup does not finish, server crash

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 3.8.4.8 last version
I have access to my server : Through SSH | through the web-admin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?:
yes
If yes, please explain: Installation on USB HDD, not on SD card. Swap is also on HDD

Description of my issue:
I everyone!

  • Since new installation 2 month ago, I can’t backup entirely my server, either from web-admin or ssh.
  • When I try to backup items separately, it works OK, except for Nextcloud.
  • The last message shown is Creating the backup TAR archive…, and server goes offline. I have to reboot it by unplug - plug the power adapter.
  • Thing strange, I can still see the server connected on my router, but UI, web-admin, and ssh are not reachable, even local IP. And of course Nextcloud local sync app is offline.
  • To be able to access to the backup page in web-admin, I have to delete the archive in ssh first
  • Note that the archive has no json attached.
  • Note also that after a failed attempt, navigate in web-admin is really slow. And not just only right after, it remains slow for days/weeks, until I delete manually the archive in ssh.

In ssh I launched yunohost backup create --apps nextcloud --debug
Here are the results:

root@mydomain:/home/admin# yunohost backup create --apps nextcloud --debug
415  DEBUG loading actions map namespace 'yunohost'
506  DEBUG extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
507  DEBUG initializing base actions map parser for cli
512  DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
836  DEBUG acquiring lock...
927  DEBUG lock has been acquired
1177 DEBUG loading python module yunohost.backup took 0.249s
1178 INFO processing action [3827.1]: yunohost.backup.create with args={'description': None, 'apps': ['nextcloud'], 'system': None, 'output_directory': None, 'methods': None, 'no_compress': Fals
1180 DEBUG No custom hook for action 'backup' in /etc/yunohost/hooks.d/
1224 INFO Collecting files to be backed up for the app 'nextcloud'…
7785 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpBmvDzG/stdinfo YNH_BACKUP_CSV=/tmp/backuackup/tmp/20200608-074449 YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=cli YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmpOWdHId/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/20200608-0744in/bash -x "/tmp/backup_tIF5BV" /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup nextcloud 7>&1'…
7787 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpBmvDzG/stdinfo YNH_BACKUPhome/yunohost.backup/tmp/20200608-074449 YNH_APP_INSTANCE_NAME=nextcloud YNH_INTERFACE=cli YNH_APP_ID=nextcloud YNH_STDRETURN=/tmp/tmpOWdHId/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmH_XTRACEFD=7 /bin/bash -x "/tmp/backup_tIF5BV" /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup nextcloud 7>&1']'
7927 DEBUG + source ../settings/scripts/_common.sh
7929 DEBUG ++ pkg_dependencies='imagemagick acl tar smbclient at'
7930 DEBUG ++ YNH_PHP_VERSION=7.3
7931 DEBUG ++ extra_pkg_dependencies='php7.3-bz2 php7.3-imap php7.3-smbclient php7.3-gmp php7.3-gd php7.3-json php7.3-intl php7.3-curl php7.3-apcu php7.3-redis php7.3-ldap php7.3-imagick php7.3- php7.3-igbinary'
7932 DEBUG + source /usr/share/yunohost/helpers
7932 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
7933 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
7934 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
7935 DEBUG ++ . /usr/share/yunohost/helpers.d/apt
7936 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
7936 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
7937 DEBUG ++ . /usr/share/yunohost/helpers.d/backup
7938 DEBUG +++ CAN_BIND=1
7939 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
7939 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
7940 DEBUG ++ . /usr/share/yunohost/helpers.d/fail2ban
7941 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
7942 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
7942 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
8043 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8044 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/hardware ']'
8045 DEBUG ++ . /usr/share/yunohost/helpers.d/hardware
8046 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8047 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
8047 DEBUG ++ . /usr/share/yunohost/helpers.d/logging
8048 DEBUG +++ increment_progression=0
8049 DEBUG +++ previous_weight=0
8050 DEBUG +++ max_progression=-1
8051 DEBUG +++ progress_scale=20
8052 DEBUG +++ progress_string2='####################'
8053 DEBUG +++ progress_string1=++++++++++++++++++++
8053 DEBUG +++ progress_string0=....................
8054 DEBUG ++++ date +%s
8058 DEBUG +++ base_time=1591602296
8059 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8060 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
8061 DEBUG ++ . /usr/share/yunohost/helpers.d/logrotate
8061 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8062 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
8062 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
8063 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
8064 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8064 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
8065 DEBUG ++ . /usr/share/yunohost/helpers.d/network
8065 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8066 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
8067 DEBUG ++ . /usr/share/yunohost/helpers.d/nginx
8067 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8068 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
8068 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
8069 DEBUG +++ n_version=6.5.1
8072 DEBUG +++ n_install_dir=/opt/node_n
8075 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
8076 DEBUG +++ export N_PREFIX=/opt/node_n
8077 DEBUG +++ N_PREFIX=/opt/node_n
8078 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8079 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
8079 DEBUG ++ . /usr/share/yunohost/helpers.d/php
8080 DEBUG +++ readonly YNH_DEFAULT_PHP_VERSION=7.0
8081 DEBUG +++ YNH_DEFAULT_PHP_VERSION=7.0
8084 DEBUG +++ YNH_PHP_VERSION=7.3
8085 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8086 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
8087 DEBUG ++ . /usr/share/yunohost/helpers.d/postgresql
8089 DEBUG +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
8090 DEBUG +++ PSQL_VERSION=9.6
8092 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8094 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
8095 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
8096 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8098 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
8099 DEBUG ++ . /usr/share/yunohost/helpers.d/string
8101 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8102 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
8104 DEBUG ++ . /usr/share/yunohost/helpers.d/systemd
8105 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8107 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
8109 DEBUG ++ . /usr/share/yunohost/helpers.d/user
8111 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
8112 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
8114 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
8115 DEBUG + ynh_abort_if_errors
8116 DEBUG + set -o errexit
8118 DEBUG + set -o nounset
8119 DEBUG + trap ynh_exit_properly EXIT
8121 DEBUG + ynh_script_progression '--message=Loading installation settings...'
8122 DEBUG + set +o xtrace
8124 DEBUG + set +o xtrace
8225 DEBUG + echo '! Helper used in legacy mode !'
8227 DEBUG + set +x
8229 DEBUG + echo '[++..................] > Loading installation settings...'
8231 DEBUG + set -o xtrace
8232 DEBUG + app=nextcloud
8234 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=final_path
8235 DEBUG ++ local legacy_args=ak
8236 DEBUG ++ args_array=([a]=app= [k]=key=)
8238 DEBUG ++ local -A args_array
8239 DEBUG ++ local app
8241 DEBUG ++ local key
8242 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=final_path
8243 DEBUG ++ set +o xtrace
8345 DEBUG ++ ynh_app_setting get nextcloud final_path
8346 INFO [++..................] > Loading installation settings...
8347 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
8348 DEBUG ++ ACTION=get
8349 DEBUG ++ APP=nextcloud
8350 DEBUG ++ KEY=final_path
8351 DEBUG ++ VALUE=
8352 DEBUG ++ python2.7 -
8855 DEBUG ++ [[ final_path =~ ^(unprotected|skipped)_ ]]
8856 DEBUG + final_path=/var/www/nextcloud
8858 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=domain
8859 DEBUG ++ local legacy_args=ak
8860 DEBUG ++ args_array=([a]=app= [k]=key=)
8862 DEBUG ++ local -A args_array
8863 DEBUG ++ local app
8865 DEBUG ++ local key
8866 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=domain
8868 DEBUG ++ set +o xtrace
8969 DEBUG ++ ynh_app_setting get nextcloud domain
8971 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
8972 DEBUG ++ ACTION=get
8972 DEBUG ++ APP=nextcloud
8973 DEBUG ++ KEY=domain
8974 DEBUG ++ VALUE=
8975 DEBUG ++ python2.7 -
9378 DEBUG ++ [[ domain =~ ^(unprotected|skipped)_ ]]
9379 DEBUG + domain=mydomain.ynh.fr
9381 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=db_name
9382 DEBUG ++ local legacy_args=ak
9384 DEBUG ++ args_array=([a]=app= [k]=key=)
9385 DEBUG ++ local -A args_array
9387 DEBUG ++ local app
9388 DEBUG ++ local key
9390 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=db_name
9391 DEBUG ++ set +o xtrace
9392 DEBUG ++ ynh_app_setting get nextcloud db_name
9394 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
9395 DEBUG ++ ACTION=get
9396 DEBUG ++ APP=nextcloud
9397 DEBUG ++ KEY=db_name
9398 DEBUG ++ VALUE=
9399 DEBUG ++ python2.7 -
9901 DEBUG ++ [[ db_name =~ ^(unprotected|skipped)_ ]]
9903 DEBUG + db_name=nextcloud
9904 DEBUG + ynh_script_progression '--message=Backing up the main app directory...'
9906 DEBUG + set +o xtrace
9908 DEBUG + set +o xtrace
9910 DEBUG + echo '! Helper used in legacy mode !'
9911 DEBUG + set +x
9912 DEBUG + echo '[##++................] > Backing up the main app directory...'
9914 DEBUG + set -o xtrace
9915 DEBUG + ynh_backup --src_path=/var/www/nextcloud
9917 DEBUG + local legacy_args=sdbm
9918 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
9919 DEBUG + local -A args_array
9920 DEBUG + local src_path
9922 DEBUG + local dest_path
9923 DEBUG + local is_big
9924 DEBUG + local not_mandatory
9925 DEBUG + ynh_handle_getopts_args --src_path=/var/www/nextcloud
9926 DEBUG + set +o xtrace
10028 DEBUG + dest_path=
10029 INFO [##++................] > Backing up the main app directory...
10030 DEBUG + is_big=0
10031 DEBUG + not_mandatory=0
10032 DEBUG + BACKUP_CORE_ONLY=0
10033 DEBUG + test -n nextcloud
10034 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
10035 DEBUG ++ local legacy_args=ak
10036 DEBUG ++ args_array=([a]=app= [k]=key=)
10037 DEBUG ++ local -A args_array
10038 DEBUG ++ local app
10039 DEBUG ++ local key
10039 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
10040 DEBUG ++ set +o xtrace
10041 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
10042 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
10043 DEBUG ++ ACTION=get
10044 DEBUG ++ APP=nextcloud
10045 DEBUG ++ KEY=do_not_backup_data
10046 DEBUG ++ VALUE=
10047 DEBUG ++ python2.7 -
10449 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
10450 DEBUG + do_not_backup_data=
10451 DEBUG + '[' 0 -eq 1 ']'
10452 DEBUG + '[' '!' -e /var/www/nextcloud ']'
10452 DEBUG ++ realpath /var/www/nextcloud
10554 DEBUG + src_path=/var/www/nextcloud
10555 DEBUG + [[ -z '' ]]
10555 DEBUG + dest_path=var/www/nextcloud
10556 DEBUG + [[ -e var/www/nextcloud ]]
10558 DEBUG + local rel_dir=/apps/nextcloud/backup
10559 DEBUG + rel_dir=/apps/nextcloud/backup/
10560 DEBUG + dest_path=/apps/nextcloud/backup/var/www/nextcloud
10561 DEBUG + dest_path=apps/nextcloud/backup/var/www/nextcloud
10562 DEBUG ++ echo /var/www/nextcloud
10563 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
10565 DEBUG + local src=/var/www/nextcloud
10566 DEBUG ++ echo apps/nextcloud/backup/var/www/nextcloud
10568 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
10570 DEBUG + local dest=apps/nextcloud/backup/var/www/nextcloud
10572 DEBUG + echo '"/var/www/nextcloud","apps/nextcloud/backup/var/www/nextcloud"'
10573 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/var/www/nextcloud
10574 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/var/www
10575 DEBUG + ynh_script_progression '--message=Backing up nginx web server configuration...'
10577 DEBUG + set +o xtrace
10578 DEBUG + set +o xtrace
10680 DEBUG + echo '! Helper used in legacy mode !'
10681 INFO [####++..............] > Backing up nginx web server configuration...
10682 DEBUG + set +x
10683 DEBUG + echo '[####++..............] > Backing up nginx web server configuration...'
10684 DEBUG + set -o xtrace
10685 DEBUG + ynh_backup --src_path=/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
10686 DEBUG + local legacy_args=sdbm
10687 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
10688 DEBUG + local -A args_array
10690 DEBUG + local src_path
10691 DEBUG + local dest_path
10692 DEBUG + local is_big
10694 DEBUG + local not_mandatory
10695 DEBUG + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
10697 DEBUG + set +o xtrace
10698 DEBUG + dest_path=
10700 DEBUG + is_big=0
10701 DEBUG + not_mandatory=0
10703 DEBUG + BACKUP_CORE_ONLY=0
10704 DEBUG + test -n nextcloud
10705 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
10706 DEBUG ++ local legacy_args=ak
10707 DEBUG ++ args_array=([a]=app= [k]=key=)
10709 DEBUG ++ local -A args_array
10711 DEBUG ++ local app
10713 DEBUG ++ local key
10715 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
10717 DEBUG ++ set +o xtrace
10718 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
10720 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
10721 DEBUG ++ ACTION=get
10722 DEBUG ++ APP=nextcloud
10723 DEBUG ++ KEY=do_not_backup_data
10724 DEBUG ++ VALUE=
10725 DEBUG ++ python2.7 -
11128 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
11131 DEBUG + do_not_backup_data=
11134 DEBUG + '[' 0 -eq 1 ']'
11135 DEBUG + '[' '!' -e /etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf ']'
11137 DEBUG ++ realpath /etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11139 DEBUG + src_path=/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11141 DEBUG + [[ -z '' ]]
11144 DEBUG + dest_path=etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11145 DEBUG + [[ -e etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf ]]
11147 DEBUG + local rel_dir=/apps/nextcloud/backup
11149 DEBUG + rel_dir=/apps/nextcloud/backup/
11151 DEBUG + dest_path=/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11152 DEBUG + dest_path=apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11154 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
11155 DEBUG ++ echo /etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11157 DEBUG + local src=/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11158 DEBUG ++ echo apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11160 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
11162 DEBUG + local dest=apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11164 DEBUG + echo '"/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf","apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf"'
11166 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d/nextcloud.conf
11168 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.ynh.fr.d
11170 DEBUG + ynh_script_progression '--message=Backing up php-fpm configuration...'
11172 DEBUG + set +o xtrace
11275 DEBUG + set +o xtrace
11276 DEBUG + echo '! Helper used in legacy mode !'
11278 DEBUG + set +x
11279 DEBUG + echo '[######++............] > Backing up php-fpm configuration...'
11281 DEBUG + set -o xtrace
11282 DEBUG + ynh_backup --src_path=/etc/php/7.3/fpm/pool.d/nextcloud.conf
11284 DEBUG + local legacy_args=sdbm
11285 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
11287 DEBUG + local -A args_array
11288 DEBUG + local src_path
11290 DEBUG + local dest_path
11291 DEBUG + local is_big
11293 DEBUG + local not_mandatory
11295 DEBUG + ynh_handle_getopts_args --src_path=/etc/php/7.3/fpm/pool.d/nextcloud.conf
11296 DEBUG + set +o xtrace
11297 DEBUG + dest_path=
11299 DEBUG + is_big=0
11300 DEBUG + not_mandatory=0
11302 DEBUG + BACKUP_CORE_ONLY=0
11303 DEBUG + test -n nextcloud
11305 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
11306 DEBUG ++ local legacy_args=ak
11308 DEBUG ++ args_array=([a]=app= [k]=key=)
11310 INFO [######++............] > Backing up php-fpm configuration...
11311 DEBUG ++ local -A args_array
11313 DEBUG ++ local app
11315 DEBUG ++ local key
11316 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
11318 DEBUG ++ set +o xtrace
11320 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
11321 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
11323 DEBUG ++ ACTION=get
11325 DEBUG ++ APP=nextcloud
11326 DEBUG ++ KEY=do_not_backup_data
11328 DEBUG ++ VALUE=
11329 DEBUG ++ python2.7 -
11833 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
11835 DEBUG + do_not_backup_data=
11837 DEBUG + '[' 0 -eq 1 ']'
11838 DEBUG + '[' '!' -e /etc/php/7.3/fpm/pool.d/nextcloud.conf ']'
11840 DEBUG ++ realpath /etc/php/7.3/fpm/pool.d/nextcloud.conf
11842 DEBUG + src_path=/etc/php/7.3/fpm/pool.d/nextcloud.conf
11843 DEBUG + [[ -z '' ]]
11845 DEBUG + dest_path=etc/php/7.3/fpm/pool.d/nextcloud.conf
11846 DEBUG + [[ -e etc/php/7.3/fpm/pool.d/nextcloud.conf ]]
11848 DEBUG + local rel_dir=/apps/nextcloud/backup
11849 DEBUG + rel_dir=/apps/nextcloud/backup/
11851 DEBUG + dest_path=/apps/nextcloud/backup/etc/php/7.3/fpm/pool.d/nextcloud.conf
11852 DEBUG + dest_path=apps/nextcloud/backup/etc/php/7.3/fpm/pool.d/nextcloud.conf
11853 DEBUG ++ echo /etc/php/7.3/fpm/pool.d/nextcloud.conf
11855 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
11856 DEBUG + local src=/etc/php/7.3/fpm/pool.d/nextcloud.conf
11857 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
11859 DEBUG ++ echo apps/nextcloud/backup/etc/php/7.3/fpm/pool.d/nextcloud.conf
11860 DEBUG + local dest=apps/nextcloud/backup/etc/php/7.3/fpm/pool.d/nextcloud.conf
11861 DEBUG + echo '"/etc/php/7.3/fpm/pool.d/nextcloud.conf","apps/nextcloud/backup/etc/php/7.3/fpm/pool.d/nextcloud.conf"'
11863 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/php/7.3/fpm/pool.d/nextcloud.conf
11865 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/php/7.3/fpm/pool.d
11867 DEBUG + ynh_script_progression '--message=Backing up the MySQL database...' --weight=2
11869 DEBUG + set +o xtrace
11971 DEBUG + set +o xtrace
11972 DEBUG + echo '! Helper used in legacy mode !'
11973 DEBUG + set +x
11974 DEBUG + echo '[########++++........] > Backing up the MySQL database...'
11975 DEBUG + set -o xtrace
11977 DEBUG + ynh_mysql_dump_db --database=nextcloud
11978 DEBUG + local legacy_args=d
11980 DEBUG + args_array=([d]=database=)
11981 DEBUG + local -A args_array
11983 DEBUG + local database
11984 DEBUG + ynh_handle_getopts_args --database=nextcloud
11985 DEBUG + set +o xtrace
11987 DEBUG ++ cat /etc/yunohost/mysql
11988 DEBUG + mysqldump --user=root --password=xwZGqzgmYa --single-transaction --skip-dump-date nextcloud
27856 DEBUG + ynh_script_progression '--message=Backing up logrotate configuration...'
27858 INFO [########++++........] > Backing up the MySQL database...
27859 DEBUG + set +o xtrace
27962 DEBUG + set +o xtrace
27963 DEBUG + echo '! Helper used in legacy mode !'
27965 DEBUG + set +x
27967 DEBUG + echo '[############++......] > Backing up logrotate configuration...'
27969 DEBUG + set -o xtrace
27970 DEBUG + ynh_backup /etc/logrotate.d/nextcloud
27972 DEBUG + local legacy_args=sdbm
27974 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
27976 DEBUG + local -A args_array
27978 DEBUG + local src_path
27980 DEBUG + local dest_path
27981 DEBUG + local is_big
27983 DEBUG + local not_mandatory
27985 INFO [############++......] > Backing up logrotate configuration...
27986 DEBUG + ynh_handle_getopts_args /etc/logrotate.d/nextcloud
27988 DEBUG + set +o xtrace
27990 DEBUG + echo '! Helper used in legacy mode !'
27992 DEBUG + set +x
27993 DEBUG + dest_path=
27995 DEBUG + is_big=0
27996 DEBUG + not_mandatory=0
27998 DEBUG + BACKUP_CORE_ONLY=0
28000 DEBUG + test -n nextcloud
28002 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
28003 DEBUG ++ local legacy_args=ak
28005 DEBUG ++ args_array=([a]=app= [k]=key=)
28007 DEBUG ++ local -A args_array
28009 DEBUG ++ local app
28010 DEBUG ++ local key
28012 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
28013 DEBUG ++ set +o xtrace
28115 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
28116 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
28117 DEBUG ++ ACTION=get
28118 DEBUG ++ APP=nextcloud
28119 DEBUG ++ KEY=do_not_backup_data
28119 DEBUG ++ VALUE=
28120 DEBUG ++ python2.7 -
28623 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
28624 DEBUG + do_not_backup_data=
28625 DEBUG + '[' 0 -eq 1 ']'
28626 DEBUG + '[' '!' -e /etc/logrotate.d/nextcloud ']'
28627 DEBUG ++ realpath /etc/logrotate.d/nextcloud
28627 DEBUG + src_path=/etc/logrotate.d/nextcloud
28629 DEBUG + [[ -z '' ]]
28630 DEBUG + dest_path=etc/logrotate.d/nextcloud
28631 DEBUG + [[ -e etc/logrotate.d/nextcloud ]]
28632 DEBUG + local rel_dir=/apps/nextcloud/backup
28633 DEBUG + rel_dir=/apps/nextcloud/backup/
28634 DEBUG + dest_path=/apps/nextcloud/backup/etc/logrotate.d/nextcloud
28636 DEBUG + dest_path=apps/nextcloud/backup/etc/logrotate.d/nextcloud
28636 DEBUG ++ echo /etc/logrotate.d/nextcloud
28637 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
28638 DEBUG + local src=/etc/logrotate.d/nextcloud
28639 DEBUG ++ echo apps/nextcloud/backup/etc/logrotate.d/nextcloud
28640 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
28741 DEBUG + local dest=apps/nextcloud/backup/etc/logrotate.d/nextcloud
28742 DEBUG + echo '"/etc/logrotate.d/nextcloud","apps/nextcloud/backup/etc/logrotate.d/nextcloud"'
28743 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/logrotate.d/nextcloud
28744 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/logrotate.d
28745 DEBUG + ynh_script_progression '--message=Backing up fail2ban configuration...'
28746 DEBUG + set +o xtrace
28748 DEBUG + set +o xtrace
28749 DEBUG + echo '! Helper used in legacy mode !'
28750 DEBUG + set +x
28751 DEBUG + echo '[##############++....] > Backing up fail2ban configuration...'
28752 DEBUG + set -o xtrace
28753 DEBUG + ynh_backup --src_path=/etc/fail2ban/jail.d/nextcloud.conf
28755 DEBUG + local legacy_args=sdbm
28756 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
28757 DEBUG + local -A args_array
28758 DEBUG + local src_path
28759 DEBUG + local dest_path
28760 DEBUG + local is_big
28761 DEBUG + local not_mandatory
28762 DEBUG + ynh_handle_getopts_args --src_path=/etc/fail2ban/jail.d/nextcloud.conf
28763 DEBUG + set +o xtrace
28764 DEBUG + dest_path=
28766 DEBUG + is_big=0
28767 DEBUG + not_mandatory=0
28767 DEBUG + BACKUP_CORE_ONLY=0
28768 DEBUG + test -n nextcloud
28769 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
28770 DEBUG ++ local legacy_args=ak
28771 DEBUG ++ args_array=([a]=app= [k]=key=)
28772 DEBUG ++ local -A args_array
28773 DEBUG ++ local app
28774 DEBUG ++ local key
28775 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
28776 DEBUG ++ set +o xtrace
28878 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
28879 INFO [##############++....] > Backing up fail2ban configuration...
28880 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
28880 DEBUG ++ ACTION=get
28881 DEBUG ++ APP=nextcloud
28882 DEBUG ++ KEY=do_not_backup_data
28883 DEBUG ++ VALUE=
28884 DEBUG ++ python2.7 -
29287 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
29289 DEBUG + do_not_backup_data=
29289 DEBUG + '[' 0 -eq 1 ']'
29290 DEBUG + '[' '!' -e /etc/fail2ban/jail.d/nextcloud.conf ']'
29491 DEBUG ++ realpath /etc/fail2ban/jail.d/nextcloud.conf
29493 DEBUG + src_path=/etc/fail2ban/jail.d/nextcloud.conf
29494 DEBUG + [[ -z '' ]]
29495 DEBUG + dest_path=etc/fail2ban/jail.d/nextcloud.conf
29496 DEBUG + [[ -e etc/fail2ban/jail.d/nextcloud.conf ]]
29497 DEBUG + local rel_dir=/apps/nextcloud/backup
29497 DEBUG + rel_dir=/apps/nextcloud/backup/
29499 DEBUG + dest_path=/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf
29500 DEBUG + dest_path=apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf
29500 DEBUG ++ echo /etc/fail2ban/jail.d/nextcloud.conf
29502 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
29503 DEBUG + local src=/etc/fail2ban/jail.d/nextcloud.conf
29504 DEBUG ++ echo apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf
29505 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
29507 DEBUG + local dest=apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf
29508 DEBUG + echo '"/etc/fail2ban/jail.d/nextcloud.conf","apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf"'
29509 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/fail2ban/jail.d/nextcloud.conf
29510 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/fail2ban/jail.d
29511 DEBUG + ynh_backup --src_path=/etc/fail2ban/filter.d/nextcloud.conf
29512 DEBUG + local legacy_args=sdbm
29514 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
29515 DEBUG + local -A args_array
29516 DEBUG + local src_path
29517 DEBUG + local dest_path
29518 DEBUG + local is_big
29519 DEBUG + local not_mandatory
29520 DEBUG + ynh_handle_getopts_args --src_path=/etc/fail2ban/filter.d/nextcloud.conf
29521 DEBUG + set +o xtrace
29522 DEBUG + dest_path=
29523 DEBUG + is_big=0
29524 DEBUG + not_mandatory=0
29526 DEBUG + BACKUP_CORE_ONLY=0
29615 DEBUG + test -n nextcloud
29616 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
29617 DEBUG ++ local legacy_args=ak
29617 DEBUG ++ args_array=([a]=app= [k]=key=)
29619 DEBUG ++ local -A args_array
29619 DEBUG ++ local app
29620 DEBUG ++ local key
29621 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
29622 DEBUG ++ set +o xtrace
29623 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
29624 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
29626 DEBUG ++ ACTION=get
29627 DEBUG ++ APP=nextcloud
29628 DEBUG ++ KEY=do_not_backup_data
29630 DEBUG ++ VALUE=
29631 DEBUG ++ python2.7 -
30033 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
30034 DEBUG + do_not_backup_data=
30035 DEBUG + '[' 0 -eq 1 ']'
30036 DEBUG + '[' '!' -e /etc/fail2ban/filter.d/nextcloud.conf ']'
30137 DEBUG ++ realpath /etc/fail2ban/filter.d/nextcloud.conf
30138 DEBUG + src_path=/etc/fail2ban/filter.d/nextcloud.conf
30139 DEBUG + [[ -z '' ]]
30140 DEBUG + dest_path=etc/fail2ban/filter.d/nextcloud.conf
30140 DEBUG + [[ -e etc/fail2ban/filter.d/nextcloud.conf ]]
30141 DEBUG + local rel_dir=/apps/nextcloud/backup
30142 DEBUG + rel_dir=/apps/nextcloud/backup/
30143 DEBUG + dest_path=/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf
30144 DEBUG + dest_path=apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf
30145 DEBUG ++ echo /etc/fail2ban/filter.d/nextcloud.conf
30148 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
30149 DEBUG + local src=/etc/fail2ban/filter.d/nextcloud.conf
30151 DEBUG ++ echo apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf
30153 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
30154 DEBUG + local dest=apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf
30156 DEBUG + echo '"/etc/fail2ban/filter.d/nextcloud.conf","apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf"'
30157 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/fail2ban/filter.d/nextcloud.conf
30158 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/fail2ban/filter.d
30159 DEBUG + ynh_backup --src_path=/etc/cron.d/nextcloud
30160 DEBUG + local legacy_args=sdbm
30161 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
30162 DEBUG + local -A args_array
30163 DEBUG + local src_path
30163 DEBUG + local dest_path
30164 DEBUG + local is_big
30165 DEBUG + local not_mandatory
30166 DEBUG + ynh_handle_getopts_args --src_path=/etc/cron.d/nextcloud
30166 DEBUG + set +o xtrace
30167 DEBUG + dest_path=
30168 DEBUG + is_big=0
30169 DEBUG + not_mandatory=0
30170 DEBUG + BACKUP_CORE_ONLY=0
30171 DEBUG + test -n nextcloud
30173 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
30174 DEBUG ++ local legacy_args=ak
30175 DEBUG ++ args_array=([a]=app= [k]=key=)
30176 DEBUG ++ local -A args_array
30176 DEBUG ++ local app
30177 DEBUG ++ local key
30178 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
30179 DEBUG ++ set +o xtrace
30180 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
30181 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
30182 DEBUG ++ ACTION=get
30184 DEBUG ++ APP=nextcloud
30185 DEBUG ++ KEY=do_not_backup_data
30186 DEBUG ++ VALUE=
30187 DEBUG ++ python2.7 -
30692 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
30693 DEBUG + do_not_backup_data=
30693 DEBUG + '[' 0 -eq 1 ']'
30694 DEBUG + '[' '!' -e /etc/cron.d/nextcloud ']'
30695 DEBUG ++ realpath /etc/cron.d/nextcloud
30696 DEBUG + src_path=/etc/cron.d/nextcloud
30697 DEBUG + [[ -z '' ]]
30698 DEBUG + dest_path=etc/cron.d/nextcloud
30699 DEBUG + [[ -e etc/cron.d/nextcloud ]]
30700 DEBUG + local rel_dir=/apps/nextcloud/backup
30700 DEBUG + rel_dir=/apps/nextcloud/backup/
30701 DEBUG + dest_path=/apps/nextcloud/backup/etc/cron.d/nextcloud
30702 DEBUG + dest_path=apps/nextcloud/backup/etc/cron.d/nextcloud
30703 DEBUG ++ echo /etc/cron.d/nextcloud
30704 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
30704 DEBUG + local src=/etc/cron.d/nextcloud
30705 DEBUG ++ echo apps/nextcloud/backup/etc/cron.d/nextcloud
30706 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
30707 DEBUG + local dest=apps/nextcloud/backup/etc/cron.d/nextcloud
30708 DEBUG + echo '"/etc/cron.d/nextcloud","apps/nextcloud/backup/etc/cron.d/nextcloud"'
30709 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/cron.d/nextcloud
30709 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/etc/cron.d
30710 DEBUG + ynh_script_progression '--message=Backing up data directory...'
30711 DEBUG + set +o xtrace
30813 DEBUG + set +o xtrace
30813 INFO [################++..] > Backing up data directory...
30814 DEBUG + echo '! Helper used in legacy mode !'
30815 DEBUG + set +x
30816 DEBUG + echo '[################++..] > Backing up data directory...'
30817 DEBUG + set -o xtrace
30818 DEBUG + ynh_backup --src_path=/home/yunohost.app/nextcloud/data --is_big
30819 DEBUG + local legacy_args=sdbm
30820 DEBUG + args_array=([s]=src_path= [d]=dest_path= [b]=is_big [m]=not_mandatory)
30821 DEBUG + local -A args_array
30824 DEBUG + local src_path
30825 DEBUG + local dest_path
30826 DEBUG + local is_big
30827 DEBUG + local not_mandatory
30827 DEBUG + ynh_handle_getopts_args --src_path=/home/yunohost.app/nextcloud/data --is_big
30829 DEBUG + set +o xtrace
30830 DEBUG + dest_path=
30831 DEBUG + is_big=1
30832 DEBUG + not_mandatory=0
30833 DEBUG + BACKUP_CORE_ONLY=0
30834 DEBUG + test -n nextcloud
30835 DEBUG ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
30836 DEBUG ++ local legacy_args=ak
30837 DEBUG ++ args_array=([a]=app= [k]=key=)
30838 DEBUG ++ local -A args_array
30839 DEBUG ++ local app
30840 DEBUG ++ local key
30841 DEBUG ++ ynh_handle_getopts_args --app=nextcloud --key=do_not_backup_data
30842 DEBUG ++ set +o xtrace
30843 DEBUG ++ ynh_app_setting get nextcloud do_not_backup_data
30844 DEBUG ++ [[ get == \d\e\l\e\t\e ]]
30845 DEBUG ++ ACTION=get
30846 DEBUG ++ APP=nextcloud
30847 DEBUG ++ KEY=do_not_backup_data
30848 DEBUG ++ VALUE=
30849 DEBUG ++ python2.7 -
31351 DEBUG ++ [[ do_not_backup_data =~ ^(unprotected|skipped)_ ]]
31353 DEBUG + do_not_backup_data=
31353 DEBUG + '[' 1 -eq 1 ']'
31354 DEBUG + '[' 0 -eq 1 ']'
31355 DEBUG + '[' 0 -eq 1 ']'
31356 DEBUG + '[' '!' -e /home/yunohost.app/nextcloud/data ']'
31357 DEBUG ++ realpath /home/yunohost.app/nextcloud/data
31358 DEBUG + src_path=/home/yunohost.app/nextcloud/data
31359 DEBUG + [[ -z '' ]]
31360 DEBUG + dest_path=home/yunohost.app/nextcloud/data
31360 DEBUG + [[ -e home/yunohost.app/nextcloud/data ]]
31361 DEBUG + local rel_dir=/apps/nextcloud/backup
31361 DEBUG + rel_dir=/apps/nextcloud/backup/
31362 DEBUG + dest_path=/apps/nextcloud/backup/home/yunohost.app/nextcloud/data
31363 DEBUG + dest_path=apps/nextcloud/backup/home/yunohost.app/nextcloud/data
31364 DEBUG ++ echo /home/yunohost.app/nextcloud/data
31365 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
31366 DEBUG + local src=/home/yunohost.app/nextcloud/data
31367 DEBUG ++ echo apps/nextcloud/backup/home/yunohost.app/nextcloud/data
31367 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
31368 DEBUG + local dest=apps/nextcloud/backup/home/yunohost.app/nextcloud/data
31368 DEBUG + echo '"/home/yunohost.app/nextcloud/data","apps/nextcloud/backup/home/yunohost.app/nextcloud/data"'
31369 DEBUG ++ dirname /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/home/yunohost.app/nextcloud/data
31370 DEBUG + mkdir --parents /home/yunohost.backup/tmp/20200608-074449/apps/nextcloud/backup/home/yunohost.app/nextcloud
31471 DEBUG + ynh_script_progression '--message=Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).' --last
31472 DEBUG + set +o xtrace
31473 DEBUG + set +o xtrace
31473 DEBUG + echo '! Helper used in legacy mode !'
31474 DEBUG + set +x
31474 DEBUG + echo '[####################] > Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).'
31475 DEBUG + set -o xtrace
31476 DEBUG + ynh_exit_properly
31476 DEBUG + local exit_code=0
31477 DEBUG + '[' 0 -eq 0 ']'
31477 DEBUG + exit 0
31605 DEBUG Backup permission for app nextcloud
31909 DEBUG initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
47389 INFO Creating a backup archive from the collected files…
47390 DEBUG Creating the backup TAR archive…
8736774 DEBUG action [3827.1] executed in 8726.022s
8767675 DEBUG lock has been released
8793829 ERROR Operation interrupted

From here I need some help to analyse the results and some guidance to fix this.
Thanks to all!
Zain

Hmokay, can you tell approximately what’s the volume of data inside Nextcloud ? Is it like 100MB, 1GB, 10GB, 100GB, …?

In Nextcloud, 55 to 70 GB.
10 users on the server.

If I understand well, the backup if made from the usb-hdd to the same usb-hdd ?

Because if the original data are on it, the backup tar file is on it and also the swap … it’s possible that it’s too much to handle.

If it’s possible for you, I suggest to use another usb-hdd as the destination for your backups archives.

Ok that’s an idea! I’ll test it.
Thanks!

I everyone,
I didn’t test the backup on external HDD yet.
I’ve tested the sudo BACKUP_CORE_ONLY=1 yunohost backup create . Working like a charm!
I didn’t notice any size difference between this command and the regular backup in web-admin, for system and other apps than Nextcloud.
Could it be a solution to backup just what I need? and users are responsible for their personal data.
Does this kind of backup allow to restore in place of post-install?

Thanks to all!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.