proxmox-stuff icon indicating copy to clipboard operation
proxmox-stuff copied to clipboard

/etc/pve is completely empty

Open homonto opened this issue 1 year ago • 12 comments

I run your script and I am not getting the point: the folder /etc/pve is completely empty in the file: proxmoxetc.2023-03-10.19.30.04.tar

I followed your wiki and while all other folders are ok, this one - quite important I believe - is empty what am I doing wrong?

Screenshot 2023-03-10 at 19 43 19 Screenshot 2023-03-10 at 19 41 28

homonto avatar Mar 10 '23 19:03 homonto

but when I enter the below commands manually:

cd /
tar cfz etc.tar.gz etc

I get the file with everything from etc, including /etc/pve as well

homonto avatar Mar 10 '23 19:03 homonto

I don't use the script anymore since we implemented PBS based backup of the PVE cluster config. Still waiting for the proxmox team to actually integrate PBS backup for PVE cluster config/database as they announced.

Did you run the script with proper permission? /etc/pve is only accessible with root.

DerDanilo avatar Mar 12 '23 08:03 DerDanilo

of course as root

homonto avatar Mar 12 '23 08:03 homonto

Same problem here. Also no symlinks for the files in pve.

lrwxr-xr-x 1 root www-data 0 Jan 1 1970 qemu-server -> nodes/atlas/qemu-server lrwxr-xr-x 1 root www-data 0 Jan 1 1970 openvz -> nodes/atlas/openvz lrwxr-xr-x 1 root www-data 0 Jan 1 1970 lxc -> nodes/atlas/lxc lrwxr-xr-x 1 root www-data 0 Jan 1 1970 local -> nodes/atlas

nodes folder is missing.

LarsNorgaard avatar Mar 18 '23 16:03 LarsNorgaard

@DerDanilo said he is not maintaining this anymore ;-) but to be honest he should remove it from github or announce that it is broken for the current PVE version - some people could rely on it and then... you know - shit happens ;)

homonto avatar Mar 18 '23 16:03 homonto

remove --one-file-system from https://github.com/DerDanilo/proxmox-stuff/blob/master/prox_config_backup.sh#L128 and https://github.com/DerDanilo/proxmox-stuff/blob/master/prox_config_backup.sh#L130

not sure L130 is needed but L128 for sure

‘--one-file-system’ Prevents tar from crossing file system boundaries when archiving. Use in conjunction with any write operation.

Proxmox uses cluster file system for /etc/pve

Fma965 avatar Apr 05 '23 18:04 Fma965

@Fma965 Excellent! I wonder if this script ever worked (without your amendments) to copy /etc/pve. Would seem an oversight by the original @DerDanilo . I wonder why he added --one-file-system at all. He must have had a good reason, I imagine.

Have never restored (yet!). Would like to try someday - to see if it really works!

gfn256 avatar Jul 26 '23 10:07 gfn256

The script worked at some point. And yes, it actually copied the files in /etc/pve. It was intended to backup single node setups. If I remember correctly (and I may be wrong) single node systems don't have a mounted filesystem at /etc/pve.

DerDanilo avatar Apr 08 '24 17:04 DerDanilo

This is correct although it's still odd that that parameter was added, especially if you never used a cluster 🤔

Fma965 avatar Apr 08 '24 20:04 Fma965

I don't even remember the time I wrote the script. I must have had a reason for it. :)

DerDanilo avatar Apr 09 '24 08:04 DerDanilo

I don't even remember the time I wrote the script. I must have had a reason for it. :)

Haha, I know that feeling! 😉

Fma965 avatar Apr 09 '24 09:04 Fma965

I don't even remember the time I wrote the script. I must have had a reason for it. :)

Happens to me all the time - if there is a time-gap when relooking at any script! Anyway thanks again.

gfn256 avatar May 28 '24 11:05 gfn256