Ill try with restore an new Linux Client.
Ill create a lttle script that download the client.
But in the client the tokens not included.
Ill try to download per wget and authkey, but i need an ses.
But how i get an session in terminal?
How can i get an backup zip via wget?
my link example
wget -O tokens.zip “ http://xxx.xxx.xxx.xxx:55414/x?a=backups&lang=de&sa=zipdl&clientid=1&authkey=mysecretauthkey&backupid=173&path=%2F%2Frootfs%2Fusr%2Flocal%2Fvar%2Furbackup%2Ftokens”
Only i add ses=7G4E88PWvq90XKP7sryciRLyw8HXXX
Then it works, but to get an ses i must click download button on website.
If i restore an machine, ive got no x-window.
Plain terminal. Also no Webbrowser
When you add new client at the UrBackup server after client added you got link for use in the terminal:
&& wget "https://urb1.yourserver.com:55416/x?a=download_client&lang=en&clientid=24&authkey=DYCt5mJifh&os=linux" -O $TF && sudo sh $TF; rm -f $TF
Thats for the Client, but i would download a backup like this
wget -O tokens.zip “ http://ip:55414/x?a=backups&ses=7G4E88PWvq90XKP7sryciRLyw8HYDL&lang=de&sa=zipdl&clientid=1&backupid=173&path=%2F%2Frootfs%2Fusr%2Flocal%2Fvar%2Furbackup%2Ftokens”
I would download from a backup /usr/local/var/urbackup/tokens as tokens.zip
But i dont know, how i get an session (ses) over the terminal.
Did you work out how to get the session id, so it can be passed along into a wget command?
OMG this is frustrating! I found a way to get the session id. Its messy, but basically you have to log into the admin panel, then download a zip file and look in developer tools and grab the sess=xxxx value from the URL
Then you create your URL like your example:
curl -v ‘
But then when you run that command from SSH, all it downloads is:
It seems like the session id doesn’t pass along to the SSH client (even though I don’t have logins set for this install)
I don’t understand why there isn’t a SSH command we can just run to create a ZIP file of a given client_id and backup ID, and then make a proper .zip file from that
I could really do with a way to do this.
May 24, 2021, 6:53pm
Not really a comfortable way: Open the “network” tab of the developer tools of your browser. Click on “download as ZIP”, see the request in the network tab. Stop the download, then right-click the download in the network tab, then “copy as curl (bash)”.