« first day  last day (14 days later) » 

4:50 AM
Hi, sorry didn't get much time to look into
however had a quick look and tried below things
Remove Start-Job from backup files and add it to the main script while calling the backup script, like:
$Job = Start-Job -FilePath .\backup.ps1
Wait-Job -Id $Job.Id
This seems to have worked first but then realized that its not copying contents to the zip file
not sure why
 
 
4 hours later…
8:55 AM
this is exactly what is happening with me
it doesnot zips the content of inetpub folders
however i used this script in my main script it worked but i actually dont understand what it does, is it ok if you can explain me this
./Russia_backup
$job = Start-Job {$i=0; $c=0; while (1) {
Write-Progress Activity "Step $i"; $i++; Start-Sleep -sec 1 }}
while ($job.State -eq 'Running' -And $c -lt 5) {
$c++;
$progress=$job.ChildJobs[0].progress;
$progress | %{$_.StatusDescription};
$progress.Clear(); Start-Sleep 1 }
this has worked but dont know what its doing, i just copied it from internet
 

« first day  last day (14 days later) »