mirror of
https://github.com/jonbranan/globalscape.git
synced 2024-10-19 21:47:05 -05:00
testing robocopy
This commit is contained in:
parent
d3b322deaa
commit
38188c7a8f
@ -3,3 +3,15 @@
|
||||
# Build a manifest
|
||||
# Determine the difference between the current W:\Installers and the destination manifest
|
||||
# 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')
|
Loading…
Reference in New Issue
Block a user