Skip to content

Impossible to initialize/prepare repository on a restricted borg server #96

Description

@dymitar

Hi,
You are trying to prepare a repository the same way you are preparing a client, with following commands (or similar):

ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <remoteborgserver> "mkdir -p /tmp/cyborgbackup_89_7zkflhhx" && scp -qo StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null /tmp/tmphccj99n6 /tmp/tmpfeosgp3j <remoteborgserver>:/tmp/cyborgbackup_89_7zkflhhx/ 
&& rm -f  /tmp/tmphccj99n6' /tmp/tmpfeosgp3j 
&& ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null <remoteborgserver> ". /tmp/cyborgbackup_89_7zkflhhx/tmpfeosgp3j && rm /tmp/cyborgbackup_89_7zkflhhx/tmpfeosgp3j && /tmp/cyborgbackup_89_7zkflhhx/tmphccj99n6 ; exitcode=$?; rm
  -rf /tmp/cyborgbackup_89_7zkflhhx ; exit $exitcode" 
rm /tmp/tmphccj99n6 /tmp/tmpfeosgp3j

This is impossible on borg servers like Hetzner for example, they don't allow you to execute the commands in the transferred script.
I understand the reason to try to implement repository preparation on a remote linux server, but I cannot completely understand the logic in the code and the steps.
I can easily init a repository on hetzner server with borg init and after that it is completely working. The same I can do on my own remote borg server.
I'm not a specialist in borgbackup, Can you please explain the reason for these commands and what would be the approach to use your very good application with this kind of servers?
The application, including the UI is very good and would save us a lot of manual work.
Kind regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions