-
Notifications
You must be signed in to change notification settings - Fork 698
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add borgbackup-viewer community container
Signed-off-by: Simon L. <[email protected]>
- Loading branch information
Showing
3 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
community-containers/borgbackup-viewer/borgbackup-viewer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"aio_services_v1": [ | ||
{ | ||
"container_name": "nextcloud-aio-borgbackup-viewer", | ||
"image_tag": "v1", | ||
"display_name": "Borg Backup Viewer", | ||
"documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/borgbackup-viewer", | ||
"image": "szaimen/aio-borgbackup-viewer", | ||
"internal_port": "5800", | ||
"ports": [ | ||
{ | ||
"ip_binding": "", | ||
"port_number": "5800", | ||
"protocol": "tcp" | ||
} | ||
], | ||
"environment": [ | ||
"BORG_HOST_ID=nextcloud-aio-borgbackup-viewer", | ||
"WEB_AUTHENTICATION_USERNAME=nextcloud", | ||
"WEB_AUTHENTICATION_PASSWORD=%BORGBACKUP_VIEWER_PASSWORD%", | ||
"WEB_LISTENING_PORT=5800" | ||
], | ||
"secrets": [ | ||
"BORGBACKUP_VIEWER_PASSWORD" | ||
], | ||
"volumes": [ | ||
{ | ||
"source": "nextcloud_aio_backup_cache", | ||
"destination": "/root", | ||
"writeable": true | ||
}, | ||
{ | ||
"source": "%NEXTCLOUD_DATADIR%", | ||
"destination": "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data", | ||
"writeable": true | ||
}, | ||
{ | ||
"source": "nextcloud_aio_mastercontainer", | ||
"destination": "/nextcloud_aio_volumes/nextcloud_aio_mastercontainer", | ||
"writeable": true | ||
}, | ||
{ | ||
"source": "%BORGBACKUP_HOST_LOCATION%", | ||
"destination": "/mnt/borgbackup", | ||
"writeable": true | ||
}, | ||
{ | ||
"source": "nextcloud_aio_elasticsearch", | ||
"destination": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch", | ||
"writeable": true | ||
}, | ||
{ | ||
"source": "nextcloud_aio_redis", | ||
"destination": "/mnt/redis", | ||
"writeable": true | ||
} | ||
], | ||
"devices": [ | ||
"/dev/fuse" | ||
], | ||
"cap_add": [ | ||
"SYS_ADMIN" | ||
], | ||
"apparmor_unconfined": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Borgbackup Viewer | ||
This container allows to view the local borg repository in a web session. It also allows you to restore files and folders from the backup by using desktop programs in a web browser. | ||
|
||
### Notes | ||
- After adding and starting the container, you need to visit `https://ip.address.of.this.server:5800` in order to log in with the user `nextcloud` and the password that you can retrieve when running `sudo docker inspect nextcloud-aio-borgbackup-viewer | grep WEB_AUTHENTICATION_PASSWORD`. | ||
- Then, you should see a terminal. There type in `borg mount /mnt/borgbackup/borg /tmp/borg` to mount the backup archive. You need to type in the password for borg next that is shown in the AIO interface. Afterwards type in `nautilus /tmp/borg` which will show a file explorer and allows you to see all the files. You can then copy files and folders back to ... | ||
- After you are done with the operation, you should remove the container for better security again from the stack: https://github.com/nextcloud/all-in-one/tree/main/community-containers#how-to-remove-containers-from-aios-stack | ||
- See https://github.com/nextcloud/all-in-one/tree/main/community-containers#community-containers how to add it to the AIO stack | ||
|
||
### Repository | ||
https://github.com/szaimen/aio-borgbackup-viewer | ||
|
||
### Maintainer | ||
https://github.com/szaimen | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters