Download backup zip via wget

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 “

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

Thank you!
Sincerely Bonkersdeluxe

When you add new client at the UrBackup server after client added you got link for use in the terminal:

TF=mktemp && wget "" -O $TF && sudo sh $TF; rm -f $TF

Thank you!
Thats for the Client, but i would download a backup like this
wget -O “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
But i dont know, how i get an session (ses) over the terminal.
Thank you!
Sincerely Bonkersdeluxe

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:

"error": 1

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 :frowning:


I could really do with a way to do this.

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)”.