SmartPhoneLover Posted December 9, 2021 Share Posted December 9, 2021 (edited) This docker template was created based on an already available official docker image GitHub: https://github.com/borgbase/vorta GitHub (Docker): https://github.com/borgbase/vorta-docker Documentation: https://vorta.borgbase.com/ Documentation (borg): https://borgbackup.readthedocs.io/en/stable/ My Repository: https://github.com/SmartPhoneLover/unraid-docker-templates DESCRIPTION This is a docker template for Vorta (GUI for Borg Backup), a backup client for macOS and Linux desktops. It integrates the mighty BorgBackup with your desktop environment to protect your data from disk failure, ransomware and theft. NOTES • There are other variables available, if needed. Check the GitHub repo to know more. • The dirs needed to interact with the host and/or any external device, is located on '/data' (bkp_to, bkp_from) in the root of the container. • Thank you very much 'marklambert (Ranbato)' (DH/GH) and 'scumbug' (DH/GH) for contributing on creating the Vorta docker image. Now, being in the official borgbase repo. VERSION 1.5 (2022-05-31) If you are going to report a bug or request something to be added/modified, please, take into consideration that I will only be able to apply changes for the work I own only. For example, if I create a docker template for an already existing docker image (not created by me), I won't be able to do more for that image than forward your report or request to the owner of the project. Edited May 30, 2022 by SmartPhoneLover Quote Link to comment
cpu Posted December 9, 2021 Share Posted December 9, 2021 Cheer for that container! Small sugestion - in your template source directory should be set to Read Only as there's no point to have this as Read/Write with full access (especially that someone may use /mnt/user instead of separate RO mount points) Quote Link to comment
SmartPhoneLover Posted December 9, 2021 Author Share Posted December 9, 2021 22 minutes ago, cpu said: Cheer for that container! Small sugestion - in your template source directory should be set to Read Only as there's no point to have this as Read/Write with full access (especially that someone may use /mnt/user instead of separate RO mount points) Changed. Thanks, and sorry I didn't realize about it. 1 Quote Link to comment
SmartPhoneLover Posted December 9, 2021 Author Share Posted December 9, 2021 (edited) UPDATE 1.1 (2021-12-09) - Changed source path from RW to RO permissions, as it doesn't need write permissions. (Thanks @cpu from unRAID forum) Edited December 9, 2021 by SmartPhoneLover Quote Link to comment
kri kri Posted December 9, 2021 Share Posted December 9, 2021 Thanks for making this. Is there any way to specify a number of external backup locations? I am thinking multiple external drives mapped using unassigned devices. Quote Link to comment
cpu Posted December 9, 2021 Share Posted December 9, 2021 2 hours ago, kri kri said: Thanks for making this. Is there any way to specify a number of external backup locations? I am thinking multiple external drives mapped using unassigned devices. Just set another PATH -> /mnt/disks/[backup] <- I've got unassigned HDD dedicated for backups and it's location is inside /mnt/disks Quote Link to comment
FlyingTexan Posted December 9, 2021 Share Posted December 9, 2021 For the new guy. Does this basically let you backup your macbooks to a server? Quote Link to comment
SmartPhoneLover Posted December 9, 2021 Author Share Posted December 9, 2021 42 minutes ago, cpu said: Just set another PATH -> /mnt/disks/[backup] <- I've got unassigned HDD dedicated for backups and it's location is inside /mnt/disks Yeah, exactly like that. So you can then choose the decided source from all the availables from your host. Quote Link to comment
SmartPhoneLover Posted December 9, 2021 Author Share Posted December 9, 2021 41 minutes ago, FlyingTexan said: For the new guy. Does this basically let you backup your macbooks to a server? I don't know how a macbook could work in terms of LAN resources, comparing to Windows for example. Maybe is the same? I never used macOS sorry. But i think, that if you configure it to be available on your network, or maybe certain directories (shares), you could still find them inside the sources. Just add the published directories to a mounted share inside your unRAID (unassigned devices plugin), and you will be able to find them in Vorta, like another share on the network. Quote Link to comment
SmartPhoneLover Posted December 9, 2021 Author Share Posted December 9, 2021 UPDATE 1.2 (2021-12-09) - Change: Changed source and destination ending paths (/locations/*) to something more descriptive, as: TO (destination) and FROM (source). - Fix: '/.../appdata/Vorta' to '/.../appdata/vorta', so make sure to move old files to the new dir if you wanna keep configs. (not actually an issue but non-capital letters is the convention I like to use for dirs under appdata) Quote Link to comment
sturmstar Posted December 10, 2021 Share Posted December 10, 2021 Hi! Thank you very much for your docker. I like it very much. I just have one question - would it be possible to change the permissions after a backup-run? I'm asking because I would like to upload the archive-files with another (rclone)-container - but the other docker doesn't have the permission to access the files... Thank you so much! Quote Link to comment
SmartPhoneLover Posted December 10, 2021 Author Share Posted December 10, 2021 6 minutes ago, sturmstar said: Hi! Thank you very much for your docker. I like it very much. I just have one question - would it be possible to change the permissions after a backup-run? I think you should check the UMASK variable, it will allow you to customize how backup files are created. Or you can also create a cron job in unRAID to periodically check and assign permissions to whatever you would like for the new files. Quote Link to comment
sturmstar Posted December 10, 2021 Share Posted December 10, 2021 2 minutes ago, SmartPhoneLover said: I think you should check the UMASK variable, it will allow you to customize how backup files are created. Or you can also create a cron job in unRAID to periodically check and assign permissions to whatever you would like for the new files. Hi! Thanks for the quick response. Cronjob in Unraid is imho a bad solution because I don't know how long the backup is running for example. I know there are these UMASK settings - but I must confess I'm not familiar with how these are working exactly. Could you give me a hint how I could/should set them - it would be no problem if the permissions are for all - I have no security issues here. thanks Quote Link to comment
SmartPhoneLover Posted December 10, 2021 Author Share Posted December 10, 2021 (edited) Oh yes, I didn't take that into consideration: crone jobs. When does your rclone fail to access the files? 1: When trying to read files directly, without having to navigate through dirs? I mean, if you configure the path for rclone to access the bkp files directly from the last vorta repo dir, in other others, where all the files are created actually (last directory). 2: When trying to enter to some directory to copy it and all its files recursively? Maybe trying to back up the hole repo, including its backed up files. I asked it because if the UMASK var is not set within the template, it will apply 022 value by default, and that means: - For FILES, it should have access without restriction, as the READ permission is set for owner/group/other (rw-r--r--). - For FOLDERS, it should have access without restriction, as the READ permission is set for owner/group/other (rwxr-xr-x). Only for tests, could you temporally add the UMASK var and set it to 000? Then, run rclone backup manually to see what happends. Note: Delete the backup files previously created by Vorta before executing Vorta backup again with new UMASK settings. And try, if not yet, to make rclone to backup the files from the last Vorta repo dir, I mean, where the bkp files are saved actually. Edited December 10, 2021 by SmartPhoneLover Quote Link to comment
sturmstar Posted December 10, 2021 Share Posted December 10, 2021 I did what you said - I added the UMASK Var to the vorta docker, deleted the whole repo before, and tried again to upload with rclone. Doesn't work - sadly. I even don't know if the permissions are different then before? best regards Quote Link to comment
SmartPhoneLover Posted December 10, 2021 Author Share Posted December 10, 2021 And, what happent to the content inside /data dir? Quote Link to comment
sturmstar Posted December 10, 2021 Share Posted December 10, 2021 6 minutes ago, SmartPhoneLover said: And, what happent to the content inside /data dir? Quote Link to comment
SmartPhoneLover Posted December 11, 2021 Author Share Posted December 11, 2021 @sturmstar I couldn't find the reason why you're experiencing that behaviour with the files created by Vorta. (I don't use RCLONE) I have asked it to other users, but did not receive a reply yet as not many of them use RCLONE. I will reply to this thread if I have an answer for this. Quote Link to comment
sturmstar Posted December 12, 2021 Share Posted December 12, 2021 7 hours ago, SmartPhoneLover said: @sturmstar I couldn't find the reason why you're experiencing that behaviour with the files created by Vorta. (I don't use RCLONE) I have asked it to other users, but did not receive a reply yet as not many of them use RCLONE. I will reply to this thread if I have an answer for this. Thank you for your efforts here. Just for you to know - currently I use the 'borgmatic' container for borg-backups. The issue with the permissions there is exactly the same - except there is the possibility to run a "hook" after the backup is done. I use it to chmod 777 -r everything after a backup. Also not an elegant solution but it works at the moment. But I just like the GUI from vorta - i hope we can come to a solution there. What I don't understand is - I'm no expert with linux in general - and with file permissions in linux - in combination with docker inside/outside - but should it be so hard (?) - I mean - is this such a 'special' demand? - someone has to be knowing what he's doing. best regards Quote Link to comment
cpu Posted December 12, 2021 Share Posted December 12, 2021 11 hours ago, sturmstar said: Thank you for your efforts here. Just for you to know - currently I use the 'borgmatic' container for borg-backups. The issue with the permissions there is exactly the same - except there is the possibility to run a "hook" after the backup is done. I use it to chmod 777 -r everything after a backup. Also not an elegant solution but it works at the moment. But I just like the GUI from vorta - i hope we can come to a solution there. What I don't understand is - I'm no expert with linux in general - and with file permissions in linux - in combination with docker inside/outside - but should it be so hard (?) - I mean - is this such a 'special' demand? - someone has to be knowing what he's doing. best regards What about ownership? Have you tried exporting PUID and PGID ? Quote Link to comment
sturmstar Posted December 13, 2021 Share Posted December 13, 2021 11 hours ago, cpu said: What about ownership? Have you tried exporting PUID and PGID ? I don't know what 'export PUID und GUID means... But I 'solved' it the other way - I got it running by changing PUID und GUID to 0 and 0 on the rclone-docker - I think this means that the rclone-docker is running with root rights - and so it can access the files from vorta. ...best regards Quote Link to comment
Greygoose Posted December 13, 2021 Share Posted December 13, 2021 Been using Borg the past couple of years. I use Vorta sometimes (prefer CLI). I will give this a try tomorrow. Thanks for the docker. Borgbackup is amazing. 1 Quote Link to comment
Greygoose Posted December 13, 2021 Share Posted December 13, 2021 Oh and for anyone looking for an offsite backup solution. Borgbase is superb. Instant support and it has been rock solid the past 2 years for me. Multiple restores and great guides. https://www.borgbase.com/ Quote Link to comment
Hotsoupie Posted December 18, 2021 Share Posted December 18, 2021 I installed the docker container yet when I try to generate a SSH key through the GUI I got no luck. After pressing the "Generate and copy to Clipboard" button nothing happends. I checked the logs, reinstalled the container (also deleted the folder) and yet no luck either. Tried it on multiple devices through vnc. Any possible solution? Quote Link to comment
kri kri Posted December 27, 2021 Share Posted December 27, 2021 (edited) I am getting the following error when running a backup. edit: I was able to fix this, I had to create my backup folder on my unassigned disk. On a related note, is there a. way to kick off a backup when an unassigned disk mounts? Edited December 27, 2021 by kri kri Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.