Activation features
This commit is contained in:
@@ -48,14 +48,14 @@ function Backup-Data($SourcePath,$BackupPath){
|
||||
if ($foldersize -ne $copysize){
|
||||
Write-Host(" Source-Path: $Source")
|
||||
Write-Host(" Target-Path: $Destination")
|
||||
#Copy-Dir -Source $Source -Destination $Destination
|
||||
Copy-Dir -Source $Source -Destination $Destination
|
||||
} else {
|
||||
Write-Host(" Skipping $Source, as it is already available on destination with identical size.")
|
||||
}
|
||||
|
||||
if ($move){
|
||||
Write-Host(" Finally cleaning up after move")
|
||||
#Remove-Item -Recurse -Force $Source
|
||||
Remove-Item -Recurse -Force $Source
|
||||
}
|
||||
} else {
|
||||
Write-Host("ERROR: Not enough free space on Backup-Drive!")
|
||||
|
||||
Reference in New Issue
Block a user