Hey,
We have backup some containers and they are all in vz/backup/. However, how can we know which container's backup is in which folder?
Hey,
We have backup some containers and they are all in vz/backup/. However, how can we know which container's backup is in which folder?
Hi,
I'm not sure of an inbuilt command within Virtuozzo to do this but I use :
This returns the container ID (assuming you're using default paths and such like).grep 94d9bf82-e526-3443-80a0-a6c6b90d7dd1 /vz/private/*/.vza/eid.conf | awk -F/ '{print $4}'
There's probably something that does this within the API too, but depending on how you want to use it thats possibly overkill
Paul.
http://www.nublue.co.uk/web-hosting
Is it possible the other way around? From a container ID to find the backup name?
Sure, thats all the eid.conf file contains.
cat /vz/private/CTID/.vza/eid.conf
However, i think vzarestore can you tell you this too.
Paul.
http://www.nublue.co.uk/web-hosting
It's quick and nasty but just change the container id in this one liner:
printf "%s%s\n" "$(vzabackup --view-folder localhost 2>&1 | sed -ne 's|^ path = \([^[:space:]]\+\)|\1|p')" $(cat /vz/private/<CTID>/.vza/eid.conf)
If you don't want to parse the backup folder location it's just:
printf "%s%s\n" <backup folder path> $(cat /vz/private/<CTID>/.vza/eid.conf)
Cheers,
Andrew
Thanks. That is useful.
Parallels should have easier tools for us to identify the backups.. what if we need to do a bare-metal backup?
Btw, I have located the backup folder.
But I need to restore this backup to a brand new VPS container. How could it be done? It is like a bare-metal restore from the container backup on the same server.