02-25-2016 12:32 AM - edited 03-18-2019 05:37 AM
Hello,
I'm wondering if there is any solution to make an automatic back-up config file for the VCS C&E.
Please share your knowledge.
Regards,
Firdaush
02-25-2016 07:16 AM
This has been asked a few times here in the forums:
automated-backup-vcs-configuration
The VCS/Expressway Series doesn't include an type of automatic backup function themselves, currently the only methods of backing up a VCS is manually by one of the these options:
With that said, someone has managed to do automated backups with the use of scripting, see Automate Cisco Video Communication Server configuration backups.
03-26-2018 06:44 AM
Doesn't work. It's not a valid backup, so you can't restore. Avoid this - fool's gold.
03-26-2018 10:29 PM
03-26-2018 11:50 PM
I have found a script on the box available as root which allows the tar file to be generated programmatically. It's under /sbin. However, you need to ssh using the root account to do this.
04-08-2019 09:25 AM
Hello Jonathan,
You means that you access to the expressway with for example winscp ( root) and you find a file under /sbin that generate an automatic backup ?
Which is the name of this file please ?
Kind regards,
Asma
11-02-2018 09:48 AM
No fools gold here, this powershell works just fine for us, it will download the files to the directory that the script is run from.
# Start Script
$header = "computer","user","pass"
# modify the computer and password fields below
$data = @'
expy-c-1,admin,<password>
expy-c-2,admin,<password>
expy-e-1,admin,<password>
expy-e-2,admin,<password>
'@
$CSV = ConvertFrom-CSV -header $header $data
# Trust all certificates, regardless of error types
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
# use TLS to connect
[System.Net.ServicePointManager]::SecurityProtocol = ([enum]::GetNames([System.Net.SecurityProtocolType]) | ? {$_ -match "Tls"})
function Backup-Expressway {
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true, Position=0)]
$computer,
[Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true, Position=1)]
$user,
[Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true, Position=2)]
$pass
)
$LoginParams = @{submitbutton='Login';username=$user;password=$pass;formbutton='Login'}
$Login = Invoke-WebRequest "https://$computer/login" -UseBasicParsing -SessionVariable access -Body $LoginParams -Method Post
$BkUp = invoke-webrequest "https://$computer/backuprestore" -websession $access -UseBasicParsing
$BkParams = @{sessionid=$bkup.InputFields.FindById('sessionid').value;submitbutton='Create system backup file';backup_password=''}
$BkupFile = invoke-webrequest "https://$computer/backuprestore" -websession $access -Body $BkParams -Method Post -TimeOutSec 0 -UseBasicParsing
$FileName = [regex]::match($bkupfile.Headers['content-disposition'],'filename=(.*)').groups[1].value
$path = "$pwd\$filename"
[System.IO.File]::WriteAllBytes($path, $BkupFile.content)
}
$CSV | %{Backup-Expressway $_.computer $_.user $_.pass}
# End Script
07-28-2021 09:18 AM
Some time ago expressway started requiring a backup password to encrypt contents, I've modified the script to use the login password to protect the backup, and email notification if the backup fails. Update below:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide