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