PowerShell_Scripts/base.linux/Backup-ViaSyncoid.ps1

10 lines
395 B
PowerShell
Raw Normal View History

[CmdletBinding()]param(
[switch]$NoClearScreen,
[string]$DataSet = 'szmedia/nextcloud',
2021-11-29 22:00:43 +00:00
[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