How to restore a folder from a backup automatically?

Templar3d

Renowned Member
Apr 14, 2011
3
0
66
I have Proxmox VE 8.3(ZFS) and Proxmox Backup(ZFS). In a web browser, there is a function called "File Restore," I can restore a folder as a zip file from a backup.
Is it possible to use a command line to restore this folder from backup?
Or is it possible to automatically restore a folder from backup to another place?
Backups are done every 1 minute and I don't want to restore a folder manually. Maybe somebody created a script for saving files or folders from backups to another place.
Please help me.
1736198626395.png
 

Attachments

  • 1736198245309.png
    1736198245309.png
    25 KB · Views: 4
what is the goal ?
Save backup copies of the SQL database on Google Drive every 30 minutes.
The SQL database is about 20 Gigabytes and the virtual machine itself with this database is more than 2 Terabytes (there is a lot of legacy). If you restore the entire virtual machine and copy the SQL database from it, it takes more than an hour.
 
This thread should probably be in the PBS archive.

But look at man proxmox-file-restore
Small excerpt:
Code:
NAME
       proxmox-file-restore  -  CLI  tool  for restoring files and directories
       from Proxmox Backup Server archives

SYNOPSIS
       proxmox-file-restore extract <snapshot> <path> [<target>] [OPTIONS]

       Restore files from a backup snapshot.

       <snapshot>
              <string> Group/Snapshot path.

       <path> <string> Path to restore. Directories will be  restored  as  ar‐
              chive files if extracted to stdout.

       <target>
              <string>  Target  directory  path.  Use '-' to write to standard
              output.



DESCRIPTION
       Command-line  tool  for  restoring  files  and directories from Proxmox
       Backup archives. In contrast to  proxmox-backup-client,  this  supports
       both container/host and VM backups.
 
  • Like
Reactions: Templar3d
Here doing sql backups inside VM, daily full backup then diff backups to the next day.
Keeping PBS as alternative backup.
Require setting VSS to Copy, available in qemu agent since v0.1.262 to not break sql chain backup, read :
 
  • Like
Reactions: Templar3d

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!