Results 1 to 6 of 6

Thread: Locate virtuozzo container backups?

  1. #1
    Kilo Poster
    Join Date
    Aug 2010
    Posts
    64

    Default Locate virtuozzo container backups?

    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?



  2. #2
    Tera Poster
    Join Date
    Mar 2009
    Location
    Lancaster
    Posts
    263

    Default

    Hi,

    I'm not sure of an inbuilt command within Virtuozzo to do this but I use :

    grep 94d9bf82-e526-3443-80a0-a6c6b90d7dd1 /vz/private/*/.vza/eid.conf | awk -F/ '{print $4}'
    This returns the container ID (assuming you're using default paths and such like).

    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



  3. #3
    Kilo Poster
    Join Date
    Aug 2010
    Posts
    64

    Default

    Is it possible the other way around? From a container ID to find the backup name?



  4. #4
    Tera Poster
    Join Date
    Mar 2009
    Location
    Lancaster
    Posts
    263

    Default

    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



  5. #5
    Mega Poster
    Join Date
    Mar 2007
    Posts
    110

    Default

    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



  6. #6
    Kilo Poster
    Join Date
    Aug 2010
    Posts
    64

    Default

    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.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •