Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Windows Server Backup Using Powershell

$
0
0


Hi

Am using the VSS to backup some directory to shared path. I want to backup again , at the time only backup modified files or new files, not all completely. ( differential backup )

add-pssnapin windows.serverbackup

$policy = New-WBPolicy

$fileSpec = New-WBFileSpec -FileSpec D:\old\*.*

Add-WBFileSpec -Policy $policy -FileSpec $filespec

$backupLocation = New-WBBackupTarget -NetworkPath \\xxxxx\Shared\

Add-WBBackupTarget -Policy $policy -Target $backupLocation

Set-WBVssBackupOptions -Policy $policy -VssCopyBackup

Start-WBBackup -Policy $policy

If you have realated to that cmdlet , please share it here.

Thanks in advance .

Karpahasundaram M.




Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>