Allow to customize folder where to store backups. #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now that
borg_ynh
supports setting up any custom repository, it seems it could be nice ifborgserver_ynh
does it as well.This patch is not making the repo fully configurable, but allows to modify the hardcoded
~/backup
into~/<anything>
.I wasn't able to test it unfortunately, having a strange
Info: WARNING - usermod: group 'ssh.app' does not exist
error and the app fails to install, but I don't see how this could be related to the modifications.Also I don't know if passing a
sub/folder
asrepository_folder
will work or fail.This is not designed to allow to choose a folder outside of the user's home, as it would be much more tricky to implement. I added to the README a recommendation for people who have this need to simply use
mount --bind /backup/path /home/ssh_user/repository_folder
.