Hi!
First, let me say that I love the proxmox backup solution
I found that so cool that I wanted to have my REHL8 systems backed up using the cli.
Problem is ... there are a lot of things in the cli version that I do not get at all
Maybe because I do not understand how it is suposed to work but I found difficult to do simple things.
Let me explain:
I have this for ex:
What I want:
* backup /tmp/sub
* backup /mnt/
* do not backup /tmp/sub/test
* do not backup /mnt/test
I wanted to try (because If it's it's allowed?) to do something like this
It gives me this:
so.. it seems to work because I loose the information about what was the source folder? like for root.pxar, there is no indication about what was the source folder (/tmp/sub)
is it the right way to handle this?
I have try to play with select only the folder using reverse logic in .pxarexclude, like
but it started to be very complication to add exclude to this...
Any help will be very appreciated on giving me the good pratices about this cli
Thanks!
First, let me say that I love the proxmox backup solution
Problem is ... there are a lot of things in the cli version that I do not get at all
Maybe because I do not understand how it is suposed to work but I found difficult to do simple things.
Let me explain:
I have this for ex:
Code:
root@Unknown host-v mnt $ cd /tmp/
root@Unknown host-v tmp $ tree -F
.
├── code-4742872c-2300-4e9a-9b55-297fdd97a803=
├── fancy-motd.tgz
├── hsperfdata_root/
│ └── 1619
├── python-languageserver-cancellation/
├── sntmp_783688709/
├── sub/
│ ├── test/
│ └── encore/
│ └── test2/
│ └── paf/
Code:
root@Unknown host-v tmp $ cd /mnt/
root@Unknown host-v mnt $ tree -F
.
├── lost+found/
├── potato
└── test/
└── test_sub/
└── file.txt
What I want:
* backup /tmp/sub
* backup /mnt/
* do not backup /tmp/sub/test
* do not backup /mnt/test
I wanted to try (because If it's it's allowed?) to do something like this
Code:
$ proxmox-backup-client backup root.pxar:/tmp/sub mnt.pxar:/mnt --include-dev /mnt --exclude */test --exclude */sub/test
Code:
root@Unknown host-v ~ $ proxmox-backup-client catalog dump host/host-v/2025-03-27T22:41:26Z
d "./root.pxar.didx"
d "./root.pxar.didx/test2"
d "./root.pxar.didx/test2/paf"
f "./root.pxar.didx/.pxarexclude-cli" 18 1969-12-31T19:00:00Z
d "./mnt.pxar.didx"
d "./mnt.pxar.didx/lost+found"
f "./mnt.pxar.didx/potato" 0 2021-05-04T11:24:48Z
f "./mnt.pxar.didx/.pxarexclude-cli" 18 1969-12-31T19:00:00Z
so.. it seems to work because I loose the information about what was the source folder? like for root.pxar, there is no indication about what was the source folder (/tmp/sub)
is it the right way to handle this?
I have try to play with select only the folder using reverse logic in .pxarexclude, like
Code:
/.pxarexclude
but it started to be very complication to add exclude to this...
Any help will be very appreciated on giving me the good pratices about this cli
Thanks!