PowerShell_Scripts/base.linux/Backup-ViaSyncoid.ps1

10 lines
383 B
PowerShell

[CmdletBinding()]param(
[switch]$NoClearScreen,
[string]$DataSet = 'szmedia/nextcloud',
[string]$DestBackupRoot = '_gw: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