testing robocopy

This commit is contained in:
jblu 2022-06-08 11:33:03 -05:00
parent d3b322deaa
commit 38188c7a8f

View File

@ -2,4 +2,16 @@
# Copy all of the files from the W:\Installers folder to any local folder on the laptop
# Build a manifest
# Determine the difference between the current W:\Installers and the destination manifest
# RSYNC?
# RSYNC?
# importing required packages
import os
from datetime import datetime
tm = now.strftime("X%mX%dX%y-X%HX%MX%S").replace('X0','X').replace('X','')
# defining source and destination
# paths
src = 'W:/installers'
trg = 'C:/Users/jbranan/Downloads/installers'
logfile = f'C:/Users/jbranan/Desktop/RC_log_{tm}.log'
os.system(f'Robocopy {src} {trg} /V /E /r:1 /w:15 /log+:{logfile} /XO /NP')