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