NFS CT backup without local copy ?

sebalou84

Active Member
Nov 1, 2018
16
0
41
36
Hi,

I have an PVE 5.4-6 a dedicated server with a 500GB SSD drive and about 100 GB free space.

One of my CT Takes 180 GB and the problem when I try to backup it (snapshot, tar.gz) to my NFS backup storage is that PVE first try to make backup locally ... and there is not space left.

So is there any way to backup this CT directly to my NFS storage without copying it locally ?

Thanks in advance !
 
Add nfs storage (datacenter, storage).
As backup target select nfs storage. My experience is that backup to nfs storage is faster than local.

Regards Blaž
 
dans le fichier
Code:
/etc/pve/vzdump.cron

rajouter --tmpdir with the directory you want

Code:
0 1 * * 1           root vzdump 191 251 252 224 --storage Backup_semaine --quiet 1 --mode stop --mailnotification always --tmpdir /Data/SSD/Temp_backup --mailto toto@tata.fr --compress lzo
 
Hello,

I commented the tmpdir instruction into /etc/vzdump.conf to avoid local temporary directory of my backups.

But this is now the output when I try to backup a CT on my NFS backup storage :

Code:
INFO: starting new backup job: vzdump 103 --mode snapshot --node ns123456 --storage backup-storage --remove 0 --compress gzip
INFO: Starting Backup of VM 103 (lxc)
INFO: Backup started at 2019-07-23 12:30:38
INFO: status = running
INFO: CT Name: dev1.test.eu
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: dev1.test.eu
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/17920/root// to /mnt/pve/backup-storage/dump/vzdump-lxc-103-2019_07_23-12_30_38.tmp
INFO: rsync: chown "/mnt/pve/backup-storage/dump/vzdump-lxc-103-2019_07_23-12_30_38.tmp/." failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/backup-storage/dump/vzdump-lxc-103-2019_07_23-12_30_38.tmp/bin" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/backup-storage/dump/vzdump-lxc-103-2019_07_23-12_30_38.tmp/bin/bzcmp" failed: Operation not permitted (1)
INFO: rsync: chown "/mnt/pve/backup-storage/dump/vzdump-lxc-103-2019_07_23-12_30_38.tmp/bin/bzegrep" failed: Operation not permitted (1)
...
...
...
 
But if I launch the backup same way with the local tmpdir "activated", I do not have this permissions problems : backups are correctly writed on the NFS.

So i do not know how to give this permissions to root?
 

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!