[SOLVED] Backing up /etc/pve ?

Fred Saunier

Well-Known Member
Aug 24, 2017
55
2
48
Brussels, BE
Hey all,

I'm trying to back up /etc (on the hypervisor) to pbs through cli :
/usr/bin/proxmox-backup-client backup etc.pxar:/etc --repository prox1.mydomain.com:Backups

The backup works well, except for /etc/pve -- which is empty.

If I run the same command specifically on /etc/pve :
/usr/bin/proxmox-backup-client backup pve.pxar:/etc/pve --repository prox1.mydomain.com:Backups

the backup then has all of the /etc/pve contents. However, if I insert the command in a script run through crontab, /etc/pve is empty again.

What is causing this behavior?
 
Code:
mount |grep /etc/pve
/dev/fuse on /etc/pve type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other)


proxmox-backup-client only backups the current filesystem, so add "--all-file-systems" as parameter should include the files.

i.e.
Code:
/usr/bin/proxmox-backup-client backup etc.pxar:/etc --all-file-systems --repository prox1.mydomain.com:Backups

see https://pve.proxmox.com/wiki/Proxmox_Cluster_File_System_(pmxcfs) for more details: so basicly you should also backup

/var/lib/pve-cluster/

it seems.
 
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!