diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh
index c30fdbc036a..6082a64f9b8 100644
--- a/Containers/borgbackup/backupscript.sh
+++ b/Containers/borgbackup/backupscript.sh
@@ -32,7 +32,7 @@ if ! mountpoint -q /mnt/borgbackup; then
fi
# Check if target is empty
-if [ "$BORG_MODE" != backup ] && ! [ -f "$BORG_BACKUP_DIRECTORY/config" ]; then
+if [ "$BORG_MODE" != backup ] && [ "$BORG_MODE" != test ] && ! [ -f "$BORG_BACKUP_DIRECTORY/config" ]; then
echo "The repository is empty. cannot perform check or restore."
exit 1
fi
diff --git a/php/templates/containers.twig b/php/templates/containers.twig
index 456bd089dca..3ca64948295 100644
--- a/php/templates/containers.twig
+++ b/php/templates/containers.twig
@@ -56,7 +56,7 @@
Reload ↻
{% else %}
You are currently running the {{ current_channel }} channel. (Logs)
- {% if isBackupOrRestoreRunning == false and domain == "" %}
+ {% if isBackupContainerRunning == false and domain == "" %}
{% if is_mastercontainer_update_available == true %}
Mastercontainer update
⚠ A mastercontainer update is available. Please click on the button below to update it. Afterwards, you will be able to proceed with the setup.
@@ -66,48 +66,29 @@
{% else %}
- Nextcloud AIO stands for Nextcloud All In One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.
-
New AIO instance
- Please type in the domain that will be used for Nextcloud if you want to create a new instance:
-
- Make sure that this server is reachable on Port 443 and you've correctly set up the DNS config for the domain that you enter.
- If you have a dynamic IP-address, you can use e.g. DDclient with a compatible domain provider for DNS updates.
-
-
Restore AIO instance from backup
- You can alternatively restore an AIO instance from backup.
-
- {% if borg_backup_host_location == '' or borg_restore_password == '' or borg_backup_mode not in ['test', 'check'] or backup_exit_code != 0 %}
- Please enter the location of the backup archive on your host and the password of the backup archive below:
+ Nextcloud AIO stands for Nextcloud All In One and provides easy deployment and maintenance with most features included in this one Nextcloud instance.
+ {% if borg_backup_host_location == '' and borg_restore_password == '' %}
+
New AIO instance
+ Please type in the domain that will be used for Nextcloud if you want to create a new instance:
- The folder path that you enter may start with /mnt/, /media/ or /host_mnt/ or may be equal to /var/backups. So e.g. /mnt/backup on Linux and macOS or /host_mnt/c/backup/directory on Windows. (This Windows example would be equivalent to 'C:\backup\directory' on the Windows host. So you need to translate the path that you want to use into the correct format.)
- ⚠ Note that the backup archive must be located in a subfolder of the folder that you enter here and the subfolder which contains the archive must be named 'borg'. Otherwise will the backup container not find the backup archive!
+ Make sure that this server is reachable on Port 443 and you've correctly set up the DNS config for the domain that you enter.
+ If you have a dynamic IP-address, you can use e.g. DDclient with a compatible domain provider for DNS updates.
{% endif %}
+
Restore AIO instance from backup
+ You can alternatively restore an AIO instance from backup.
+
{% if borg_backup_host_location != '' and borg_restore_password != '' %}
- {% if borg_backup_mode not in ['test', 'check'] or backup_exit_code != 0 %}
- Everything set! Click on the button below to test the path and password:
-
- {% endif %}
{% if borg_backup_mode in ['test', 'check'] %}
{% if backup_exit_code > 0 %}
- Last {{ backup_exit_code }} failed! (Logs)
{% if borg_backup_mode == 'test' %}
- Please adjust the path and/or password in order to make it work!
+ Please adjust the path and/or password in order to make it work! Afterwards click on 'Test path and password' button to verify the settings!
{% elseif borg_backup_mode == 'check' %}
The backup archive seems to be corrupt. Please try to use a different intact backup archive or try to fix it by following this documentation
{% endif %}
@@ -140,6 +121,29 @@
{% endif %}
{% endif %}
{% endif %}
+
+ {% if borg_backup_host_location == '' or borg_restore_password == '' or borg_backup_mode not in ['test', 'check', ''] or backup_exit_code > 0 %}
+ Please enter the location of the backup archive on your host and the password of the backup archive below:
+
+ The folder path that you enter may start with /mnt/, /media/ or /host_mnt/ or may be equal to /var/backups.
So e.g. /mnt/backup on Linux and macOS or /host_mnt/c/backup/directory on Windows. (This Windows example would be equivalent to 'C:\backup\directory' on the Windows host. So you need to translate the path that you want to use into the correct format.)
+ ⚠ Note that the backup archive must be located in a subfolder of the folder that you enter here and the subfolder which contains the archive must be named 'borg'. Otherwise will the backup container not find the backup archive!
+ {% endif %}
+ {% if borg_backup_host_location != '' and borg_restore_password != '' %}
+ {% if borg_backup_mode not in ['test', 'check'] or backup_exit_code != 0 %}
+ Everything set! Click on the button below to test the path and password:
+
+ {% endif %}
+ {% endif %}
{% endif %}
{% endif %}
{% if isBackupContainerRunning == true and domain == "" %}
@@ -269,7 +273,7 @@
- The folder path that you enter must start with /mnt/, /media/ or /host_mnt/ or be equal to /var/backups. So e.g. /mnt/backup on Linux and macOS or /host_mnt/c/backup/directory on Windows. (This Windows example would be equivalent to 'C:\backup\directory' on the Windows host. So you need to translate the path that you want to use into the correct format.)
+ The folder path that you enter must start with /mnt/, /media/ or /host_mnt/ or be equal to /var/backups.
So e.g. /mnt/backup on Linux and macOS or /host_mnt/c/backup/directory on Windows. (This Windows example would be equivalent to 'C:\backup\directory' on the Windows host. So you need to translate the path that you want to use into the correct format.)
{% endif %}
{% if borg_backup_host_location != "" %}
@@ -377,9 +381,9 @@
{% endif %}
{% if is_talk_enabled == true %}
-
+
{% else %}
-
+
{% endif %}
{% if is_onlyoffice_enabled == true %}