Link to home
Create AccountLog in
Avatar of fofanah78
fofanah78

asked on

File Transfer

What's the easiest way to schedule a file transfer that's 1.3GB over night in Windows Server 2008?
ASKER CERTIFIED SOLUTION
Avatar of Member_2_6492660_1
Member_2_6492660_1
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Use windows task manager to schedule a batch copy command

http://en.wikipedia.org/wiki/Windows_Task_Manager
If windows 7 use task scheduler

http://www.youtube.com/watch?v=8986eNlXjos
Avatar of Sumesh BNR
create batch file  and use xcopy or robocopy an schedule the batch file using Windows task scheduler

note that batch file need to be run in elevated mode otherwise it w may fail see this thread you can find the UAC related issues and solution here https://www.experts-exchange.com/questions/27928938/sql-start-and-stop-cmd.html?anchorAnswerId=38579068#a38579068
Avatar of fofanah78
fofanah78

ASKER

trgrassijr55 let me see a sample of the commad you will use to schedule the file transfer in teracopy.  Thanks!!
set source=C:\FileLocation
Set destination=D:\TransferLocation

:Xcopy
xcopy %source% %destination%\filename.ext /s/e/d/c/i/y/k/h >C:\Backup\Logs\Transfer.Txt
 (you don't need all those switches but I usually just use them all)

or use
:RoboCopy
robocopy %source% %destination% filename.ext /W:1 /R:3 /ZB /LOG:C:\Backup\Logs\Transfer.Txt
Sorry for the delay

here is a sample of my batch file

rem @echo off

del c:\util\photo.log
del c:\util\photo.txt

cd\Program Files\TeraCopy

teracopy.exe copy o:\photos "d:\photo backup" /overwriteall /close >c:\util\photo.log

cd\util
rem du get file folder totals
c:\util\pstools\du "d:\photo backup" >>c:\util\photo.log

rem converts photo.log from Unicode to ascii
type c:\util\photo.log >c:\util\photo.txt


c:\util\febooti\febootimail -from server5@mydomain.com -to me@mydomain.com -msg "Photo Library Report" -subj "Backup Copy of Photo Library" -attach photo.txt -smtp 192.168.1.126

exit