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