Proxmox Backup Client Restore

beerygaz

Member
Nov 12, 2020
2
0
6
53
I there a command line paramter to restore the latest backup using a combination of the
Code:
proxmox-backup-client snapshot list
proxmox-backup-client restore
command? without a lot for regex parsing? Do I need to get a snapshot list, output to JSON, parse that JSON for the latest snapshot and then pass that back as a parameter to the restore command? Trying not to re-invent the wheel here.
 
fyi: the client nearly always has a '--output-format' option that you can set to e.g. json, which makes it much easier to parse/traverse with tools like e.g. 'jq'
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!