How to restore from backup using the AIO Intrface

The instructions say I can restore from the AIO interface by clicking the button that says “Restore selected backup” but I dont see it.
How exactly do I get to it?

Mike

Hi, can you please post a screenshot of what you see currently in the AIO interface?

I made a PDF of the screen then took screen shots of all 3 pages



image

Thanks for the screenshot! You need to create a backup first in order to be able to restore one. Does this make sense to you?

I already created a backup and verfied the borg files are there.
If you look t the 2nd screenshot it tells you were it is: /mnt/ncbacvckup/borg

I see. Can you post the nextcloud-aio-borgbackup container logs here for further debugging? Also please post the output of sudo ls /var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data/data/ here.

How can I get the nextcloud-aio-borgbackup container logs?

The output of ls is here:

mike@nextcloud:~$ sudo ls /var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data/data/
[sudo] password for mike:
backup_archives.list borg.config session_date_file
backupsecret configuration.json
mike@nextcloud:~$

Just an FYI! My ubuntu does show the backup files:

mike@nextcloud:~$ sudo ls -al /mnt/ncbackup/borg
total 7168
drwxrwx— 2 www-data www-data 0 Dec 3 22:56 .
drwxrwx— 2 www-data www-data 0 Dec 3 22:55 …
-rwxrwxrwx 1 www-data www-data 965 Dec 3 22:55 config
drwxrwx— 2 www-data www-data 0 Dec 3 22:55 data
-rwxrwxrwx 1 www-data www-data 76 Dec 3 22:56 hints.9
-rwxrwxrwx 1 www-data www-data 1310858 Dec 3 22:56 index.9
-rwxrwxrwx 1 www-data www-data 190 Dec 3 22:56 integrity.9
-rwxrwxrwx 1 www-data www-data 16 Dec 3 22:55 nonce
-rwxrwxrwx 1 www-data www-data 73 Dec 3 22:55 README
mike@nextcloud:~$

Okay, interesting. Can you try to reload the AIO interface? Does it change?

Also, please try this one again and post the output here:

sudo ls -l /var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data/data/

I see what’s going on.

I am testing the restore feature.

I created NC in virtualbox, got it working and made a backup. Lets call this VM “NC”

Next I created a full clone to simulate having to rebuild NC on a disk crash. Lets call this vm “backup”.

My intention is to be able to launch the backup vm if the NC vm crashes due to a computer or disk issue then restore from backup.

When I go into the AIO interface from NC I see the option to Restore selected backup.

When I go into the AIO interface from backup I don’t see it.

from NC:
mike@nextcloud:~$ sudo ls -l /var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data/data/
[sudo] password for mike:
total 20
-rwxrwx— 1 www-data www-data 50 Dec 3 22:56 backup_archives.list
-rwxrwx— 1 www-data www-data 48 Nov 26 23:47 backupsecret
-rwxrwx— 1 www-data www-data 965 Dec 3 22:55 borg.config
-rwxrwx— 1 www-data www-data 1314 Dec 3 22:56 configuration.json
-rwxrwx— 1 www-data www-data 10 Dec 3 17:49 session_date_file
mike@nextcloud:~$

from backup:
mike@nextcloud:~$ sudo ls -l /var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data/data/
[sudo] password for mike:
total 12
-rwxrwx— 1 www-data www-data 48 Nov 26 23:47 backupsecret
-rwxrwx— 1 www-data www-data 1285 Dec 3 23:13 configuration.json
-rwxrwx— 1 www-data www-data 10 Dec 3 17:49 session_date_file
mike@nextcloud:~$

Does this help?

So then is this not a bug and works as intended.

Yeah, it is missing the borg.config file.


My recommendation for you: when you use a VM copy for backup simply dont use the built-in backup solution and the other way around.

ok, bummer.
I’ve tried to find an alternate solution to backup and restore, but what I found doesn’t give enough detail.
Can you point me in the right direction or tell me how to do it?

I am honestly not sure what you are asking for. Why is the built-in backup solution not good enough for you?

Sorry, I thought the AIO interface was the built-in backup solution.
What is the built-in backup solution?

No, indeed is the AIO interface the built-in backup solution.

“My recommendation for you: when you use a VM copy for backup simply dont use the built-in backup solution and the other way around.”

You mentioned not to use the built-in backup solution which is the AIO interface. You said “and the other way around”. I don’t know what you mean by that.

“Why is the built-in backup solution not good enough for you?”
Here you asked why the built-in backup solution isn’t good enough for me. You told me I shouldn’t use it with a VM NC install.

“No, indeed is the AIO interface the built-in backup solution.”
This statement tells me AIO interface is the built-in backup solution.

What I am looking for is a way to backup NC that is on a virtual machine.
I thought of making clones of the VM every 2-3 days but that is not a realistic solution for me.

A backup solution that runs in Ubuntu would work since I could have it done automatically.
I have searched google more to find something without success.

Please point me in the right direction.

Honestly I am now more confused than before.

The backup solution that comes bundled within AIO is using borg for backups. For me the questions was why this is not good enough for you.

Doing external copies of your VM is a different backup solution and might work as well. However in that case you should probably not use the within AIO bundled solution.

Hope that makes things more clear.

you said that the AIO successful backup was missing borg.config file when I tried to restore to my backup vm.
If I cant restore using AIO to a newly created NC after a crash if borg.config file is missing, then obviously I cant use AIO to backup from previous server and restore to a new one.

If your NC were to crash, how would you restore your backup?

When using the within AIO bundled backup solution, you would use the AIO interface to restore your backup.

When using an external VM copy or snapshot, you would use that to restore your backup since the data is included in the copy/snapshot of the VM. So no need to restore using the AIO interface in that case.

Here is whre I’m confused:
When I tried to restore my backup to the new nc server, the backup did not show.
You said “Yeah, it is missing the borg.config file.”

How can I restore if this file is missing?
Is there anyway to get the new server to see the borg.config file?