Port access to Opendal Hetzner for StorageBox #1102
Replies: 10 comments 21 replies
-
It seems the write command of the snapshotfile generated by that backup just failed. Which is a bit weird as obviously reading was successful. Just guessing: From https://github.com/rustic-rs/rustic/blob/main/config/services/sftp_hetzner_sbox.toml I see that other users use port 23 to access the storage box. Could it be that using the default port 22 you just have read-only access? |
Beta Was this translation helpful? Give feedback.
-
Storagebox allows for both port 22 and 23 to be used, see here: https://docs.hetzner.com/robot/storage-box/backup-space-ssh-keys I can't use 23 because of how my work network is configured. I've used rustic via rclone backend on port 22 just fine in the past. I'll try on a different machine that is on a less restricted network, and change to port 22 just to be sure, and I'll report back. |
Beta Was this translation helpful? Give feedback.
-
https://docs.hetzner.com/robot/storage-box/access/access-ssh-rsync-borg
So please use port 23. ;-) |
Beta Was this translation helpful? Give feedback.
-
@devhell I'd like to see if only the snapshot is affected or if this was the only data to upload. |
Beta Was this translation helpful? Give feedback.
-
@devhell You could also try to open an issue in the opendal project: https://github.com/apache/OpenDAL |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. Any advice? I have rustic v0.9.5; should I configure repo using rclone? |
Beta Was this translation helpful? Give feedback.
-
Could you post your working rclone config and rustic toml file? |
Beta Was this translation helpful? Give feedback.
-
I have a working config with my hetzner storage box and if I remember correctly, I had similar errors initially. The trick is the root path. It needs to be root = "/home/path to your repository" |
Beta Was this translation helpful? Give feedback.
-
Just that we are talking of the same thing: In the configs you have posted the path in [repository.options], option root, is not starting with /home. I am using a sub-user (needs this "/home" in the root path as well), but started with the main user of the storage box. The user is set up with an SSH key. In both cases it only worked with an absolute path beginning with "/home" Also, I startet from scratch: I created the repositoy with rustic init once the config was working. |
Beta Was this translation helpful? Give feedback.
-
After some more testing, I can confirm the following: The use of a subaccount is irrelevant, it seems. What matters is that port 23 is used, and the The main difference between the ports being that 22 does not offer a shell, whereas 23 offers a limited shell, and 22 and 23 use different SSH key formats. So, I'm guessing the lack of shell is the reason port 22 doesn't work with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Love that the backend is not relying on rclone now, but it appears that my existing Hetzner storagebox repo can't be backed up to any more.
The backup is called as follows:
rustic -P machine backup
Config file:
Output:
Every time I run the backup command, the snapshot ID it says it can't find, changes.
I ran
rustic -P machine check
which came back fine. I've also triedrustic -P machine repair index
andrustic -P machine repair snapshots
, both of which don't flag anything. Running the backup again simply results in a random snapshot ID apparently not being found.System is NixOS Unstable, rustic version is
0.7.0
.Beta Was this translation helpful? Give feedback.
All reactions