Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
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
docker stop {sv-server-container}
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}
docker container start {sv-server-container}
docker cp {sv-server-container}:/opt/microfocus/sv-server/work/{backup-file-name} .
Restore
docker cp {backup-file-name} {sv-server-container}:/opt/microfocus/sv-server/work/
docker stop {sv-server-container}
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}
docker container start {sv-server-container}