-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rclone config with hetzner storage box append only #95
Comments
I think you need to do the following: In config.ps1 set the $AdditionalBackupParameters to include your -o parameter. This is all guessing since I've never tried it. |
thx a lot.. your hint leeds me to update my installation.. but still problems: following works perfect: Since my installation is old.. i just updated: This in
And this in
Results to this:
as far as i understand the sourcecode of
There seems to be something wrong with my syntax |
Do you have OpenSSH installed on your Windows machine? If you try to SSH from the command line does it work? |
Hey.. ssh from commandline works.. like described in the first part of my last post.. finaly it seems i found the problem(s).. it is about the brackets.. i changed:
to
and now, this works:
but well.. as stated in my last posting, the variable
(But new snapshot was generated) As far as i understand, i need to change the config.ps1 in that way, that
(i don't know about powershell-syntax) or i have to change |
Ok.. finaly i got it working.. here is a workaround:
after:
i won't call this a "solution" but a workaround, because we have to alter the @kmwoley maybe you want to reflect this kind of solution/way to use restic in your great powershell-scripts? this is a great way to use restic append only via ssh, without restic rest-server my skillz in powershell and git are too low to provide a good solution/pull-request, sorry =( |
If someone could work up a pull request, I'll happily review and integrate
it. I'm due for my annual updates to the script. :D
…On Sat, Mar 9, 2024 at 1:48 PM demlak ***@***.***> wrote:
Ok.. here is a workaround.
1. Configure and test your SSH, like described in the README.md at
Topic "Backup over SFTP".
2. Add a new Variable to config.ps1 and replace the uxxxx with your
credentials:
$RcloneConnect = @("-o", 'rclone.program="ssh -p 23 ***@***.*** forced-command"')
1. Edit backup.ps1:
After *every* $ResticExe add an $RcloneConnect.
For Example Line 82:
before:
$locks = & $ResticExe list locks --no-lock -q 3>&1 2>> $ErrorLog
after:
$locks = & $ResticExe $RcloneConnect list locks --no-lock -q 3>&1 2>> $ErrorLog
In secrets.ps1 use rclone: as your repo
i won't call this a "solution" but a workaround, because we have to alter
the backup.ps1. Ofcourse those changes are gone, after next update.
@kmwoley <https://github.com/kmwoley> maybe you want to reflect this kind
of solution/way to use restic in your great powershell-scripts? this is a
great way to use restic append only via ssh, without restic rest-server
—
Reply to this email directly, view it on GitHub
<#95 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOWG6BOOQLABAOCBNCCMULYXN7RBAVCNFSM6AAAAABENCCIAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHE4DSMBWGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There you go: #96 Three additional options
|
Hey there.. we are using the script with restic-rest-server since a year.. everything works good..
now i want to change the way the script uploads data..
we use a hetzner storage box, which is able to listen via ssh and that could be forced to use restic in this way:
https://forum.restic.net/t/hetzner-storage-box-supports-rclone-serve-restic-stdio/5943/6
on my linux clients, everything went fine with the new way.
since i am not a windows pro, i don't understand exactly how to change the scripts for using it like this:
restic -o rclone.program='ssh -p23 uXXXXX@uXXXXX.your-storagebox.de forced-command' -r rclone: init
i was following the instructions for installing ssh key.. like described in the README.md.. and checking via
.\PsExec.exe -s -i powershell.exe
+ssh user@server
was workingcould you explain, what exactly i have to update in
config.ps1
and the other files, to use it in that way via the task scheduler?thx a lot
EDIT: Workaround here: #95 (comment)
The text was updated successfully, but these errors were encountered: