Tagged Questions
2
votes
1answer
110 views
Mirror directory, only purging files in destination directory older than 7 days
I would like to mirror a directory, but only delete files in the destination directory older than 7 days.
Situation:
- Directory A is mirrored to Directory B.
- A file from Directory A is deleted
...
3
votes
4answers
2k views
Copy multiple folders to a single destination with robocopy
I'm looking for a solution to use robocopy to copy several folders from a directory onto a distant network share. I want to choose several folders out of a directory that contains hundreds of folders ...
3
votes
3answers
1k views
Using ROBOCOPY to MOVE data around, not copy it
I have the following powershell script, which executes a few robocopy commands:
ROBOCOPY.exe $q3 $q4 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
ROBOCOPY.exe $q2 $q3 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD
...
10
votes
6answers
15k views
How to get robocopy running in powershell?
I'm trying to use robocopy inside powershell to mirror some directories on my home machines. Here's my script:
param ($configFile)
$config = Import-Csv $configFile
$what = "/COPYALL /B /SEC/ /MIR"
...