[SOLVED] right syntax for the exclude file ".pxarexclude"

maxprox

Renowned Member
Aug 23, 2011
420
53
93
Germany - Nordhessen
fair-comp.de
Hi,
I have a question about the right syntax, charsets and encoding for the "Excluding files/folders from a backup" file, named ".pxarexclude" for a windows VM:

There is a windows 2019 Server VM, with drive F\:
Code:
(F:)
├── SFirm
│   └── money
├── Archiv
│   ├── Progs
│   │   ├── Prog01
│   │   ├── Prog02
│   │   └── picture.png
│   └── Screenshot
│       ├── LVM-Thin_20210305b.png
│       └── Fuckingthings
│           ├── Backup_aktiv_20210418.png
│           └── Laufwerke_2021-03-04.png
├── DatenWRS
│   └── Data1
│       └── Data1b
├── Important
│   └── Data
├── td
│   ├── td01
│   │   ├── td01a
│   │   ├── td01b
│   │   └── picture.png
│   └── Data
├── T54W-96.86.0.5.rom
└── .pxarexclude
The two windows directories ''F:\Archiv\Progs\'' and ''F:\td\'' with all of its subdirectories should be excluded.

I work with a text file ".pxarexclude", with "/" (slashes), utf-8 and linux bash / shell settings with the text editor (Notepad++), with this syntax:
Code:
/Archiv/Progs/*
/td/*
this file ".pxarexclude" is saved in the root of windows drive F\:
Is now the initial slash "/" necessary? Because I read this: .pxarexclude not working as expected
This is the same syntax, I will use for exclusion under a Linux VM.

Is this correct?
regards,
maxprox
 
Last edited:
Hi, how are you planning to back up the windows VM? You can only do an image-based backup, not a file-level backup. You cannot exclude paths on a image-based backup, it just backups the entire drive because it does not know what is on that drive.

For a file-level backup you need to run the proxmox-backup-client inside the VM but the client is not avaible for windows, only linux. This means the pxarexclude is completly irrelevant for you, you cannot do file level backups.
 
  • Like
Reactions: maxprox
Hi, how are you planning to back up the windows VM? You can only do an image-based backup, not a file-level backup. You cannot exclude paths on a image-based backup, it just backups the entire drive because it does not know what is on that drive.

For a file-level backup you need to run the proxmox-backup-client inside the VM but the client is not avaible for windows, only linux. This means the pxarexclude is completly irrelevant for you, you cannot do file level backups.
Thank you for the answer,

yes your right until today I misunderstand this. (I have a Windos VM in with every second month around 15 GB Update files re-emerged, which I won't to exclude) but my fault, was a confuse between file-level-backup with the proxmox-backup-client and the Image based backup with the Proxmox-Backup-Server...
Now I see ;-)

thank you
 
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!