How to backup and restore data when SV is running in Docker

 
0 Likes

Prerequisite is your SV Server is using volumes for app.config, work and logs folders as desribed in https://admhelp.microfocus.com/sv/en/2023/Help/Content/Installation/Docker-SV-server-Linux.htm

Before running any command from below don't forget to replace the placeholders with actual values matching your environment.

Backup

  1. Stop SV Server container

    docker stop {sv-server-container}

  2. Run backup command.

    docker run --volumes-from {sv-server-container} --rm --network {network-name} virtualization/sv-server:{sv-version} dotnet /opt/microfocus/sv-server/bin/BackupAndRestore.dll /b:../work/{backup-file-name}

  3. Start SV Server container

    docker container start {sv-server-container}

  4. Copy backup file from the volume

    docker cp {sv-server-container}:/opt/microfocus/sv-server/work/{backup-file-name} .

Restore

  1. Copy backup file to the volume (if not there)

    docker cp {backup-file-name} {sv-server-container}:/opt/microfocus/sv-server/work/

  2. Stop SV Server container

    docker stop {sv-server-container}

  3. Run restore command

    docker run --volumes-from {sv-server-container} --rm --network {network-name} virtualization/sv-server:{sv-version} dotnet /opt/microfocus/sv-server/bin/BackupAndRestore.dll /r:../work/{sv-server-backup-file}

  4. Start SV Server container

    docker container start {sv-server-container}

Labels:

How To-Best Practice
Knowledge Docs
Support Tip
Comment List
Related
Recommended