PowerShell_Scripts/base.linux/Backup-ViaSyncoid.ps1

10 lines
395 B
PowerShell

[CmdletBinding()]param(
[switch]$NoClearScreen,
[string]$DataSet = 'szmedia/nextcloud',
[string]$DestBackupRoot = 'root@gw.lksz.me:z/szbackup'
)
if( -not $NoClearScreen ) { Clear-Host }
Write-Verbose "& syncoid --recursive `$DataSet{'$DataSet'} `"`$DestBackupRoot/`$DataSet`"{`"$DestBackupRoot/$DataSet`"}"
& syncoid --recursive $DataSet "$DestBackupRoot/$DataSet"
Write-Host "`n"*2