[SOLVED] backup multiple folder

howudodat

Active Member
Feb 15, 2019
8
5
43
56
I see that I can backup multiple paths doing:
Code:
proxmox-backup-client backup etc.pxar:/etc root.pxar:/root --repository ...
but that creates 2 archives
I know I can also add a bunch of .pxarexclude files
But if I only want to backup /etc and /root and I want then in the same archive, how can I do that?

Peter
 
only when you use pxar exclude + include e.g. something like this should work:

Code:
*
!/etc
!/root

excludes everything besides /etc and /root. this is written from memory though and not tested (maybe the dirs need a trailing slash or something similar)

edit:

ok, was curious and tested it, here a config that should work:

Code:
*
!/etc
!/etc/**
!/root
!/root/**
 
Last edited:

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!