[dba-Tech] PowerShell question

Martin Reid mwp.reid at qub.ac.uk
Thu Nov 22 13:36:43 CST 2018


Arthur
Not much help but Google says

https://social.technet.microsoft.com/Forums/windows/en-US/7b5af033-7988-443d-aa00-aef7780c57cc/copy-only-new-and-modified-files

Sent from my Huawei Mobile

-------- Original Message --------
Subject: [dba-Tech] PowerShell question
From: Arthur Fuller
To: Discussion of Hardware and Software issues
CC:

My SSD is only 250GB (I plan to upgrade in a week or so). As a result, I
mirror My Documents from the SSD to an external drive (g:). It's easy
enough to do the basic copy, but I would like to optimize it, skipping all
the files that already exist on the target unless the source file's date is
greater than the target's, in which case I want to overwrite it. Last, I
would like to delete all the files from the source folder that are older
than a week.
Any PS experts out there to assist?

TIA,
Arthur

--
Arthur
_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com


More information about the dba-Tech mailing list