Hi there,
I want to backup a VE/CT to an external HD.
Just the core system, OS (Deb11) w. basic setting, but without the data (plex media lib w. ~10TB)
After reading wiki, I started the dump via command-line and get:
As the vzdump-lxc-333-2024_05_27-12_04_23.dat file has grown in 3 hrs. > 1TB and is still growing, the backup still running, it seems, it does not consider the "--exclude-path /opt/plexmedia/"-option, hence my question:
Hi,
AFAIK, that should work. Can you please share the full backup task log and output of pveversion -v and pct config 333? If the backup has finished since then, you can check with tar --list -f /path/to/your/backup.tar | grep plexmedia if the files have been excluded.
How else could I move the 10TB VE to a new host and what would be the fastest option?
I treid PBS, but it fails on restore...
That is why I wanted to backup only the working System (already treid to rebuild from scratch, but that didnt work out) and later rsync or scp the media (which lasted like a week over LAN - thats why wanted to try to backup to ext. HD, move the ext. HD to new node and restore, but I run out of disk-space)...
How else could I move the 10TB VE to a new host and what would be the fastest option?
I treid PBS, but it fails on restore...
That is why I wanted to backup only the working System (already treid to rebuild from scratch, but that didnt work out) and later rsync or scp the media (which lasted like a week over LAN - thats why wanted to try to backup to ext. HD, move the ext. HD to new node and restore, but I run out of disk-space)...
Mostly for future readers: without a leading slash, it will also exclude any sub-directories matching the pattern (i.e. /some/other/opt/plexmedia), so please be careful!
--exclude-path <array>
Exclude certain files/directories (shell globs). Paths starting with / are anchored to the container’s root, other paths match relative to each subdirectory.
For PBS backups or suspend mode backups (which use rsync), using a trailing slash does work (it will exclude only directories that match, but not files).
For non-PBS stop/snapshot mode backups however, a pattern with a trailing slash will not match at all, neither exclude files nor directories. This is because the pattern is passed to tar and that won't match with a trailing slash.
We'll see if the behavior can be aligned or otherwise, mention this in the documentation.
EDIT: it's actually only tar that behaves differently
I sent patches to warn about this (during backup and in the docs). Changing it right now seems like it could trip up some users, so that is probably better done during a (major) release to be able to mention it prominently in the release notes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.