Solved

Super simple backup process.... what do you think?  How to send it to a remote web server?

Posted on 2006-07-20
3
231 Views
Last Modified: 2010-04-03
What do you think of this simple batch file for backing up data from the server's shared T drive where everyone stores everything to a PC in another part of the building?  it loops every 12 days.  there's a scheduled task to run it weeknights.

Every month or so I change one of the folders to a month / year name and that is a monthly snapshot.

This is the only backup process, so do you think using the /d switch on xcopy is better / worse than /m or /a?  I guess I'd use the switch that looks for archive bit turned on and then turn it off.

yeah, this keeps adding files to the backup folder, that's a downside - if they move a directory, then the nightly backup runs, that folder gets duped...restoring the whole tree is a pain then - those files are there 2x... but to restore only some files, it's better to have more? the older / newer version?

Is there a way  / what is the syntax to ahve it backup to a web server / ftp account?  I am used to the format of ftp://username:password@domain.com to open a window on the ftp server... will that work with xcopy?  or is there some other command I need?  xcopy t:\*.* ftp://user:password@domain.com  ???

thanks!


set counter=1
call c:\admin\backup\counter.bat
:ok
if %counter%==12 goto reset
set /a counter=%counter% + 1
goto write
:reset
set /a counter=1
:write
echo set /a counter=%counter% > c:\admin\backup\counter.bat
date /t >> "c:\admin\backup\latest%counter%.txt"
echo start >> "c:\admin\backup\latest%counter%.txt"
time /t >> "c:\admin\backup\latest%counter%.txt"
xcopy "t:\*.*" "c:\admin\backup\backup%counter%" /y /r /h /c /i /v /e
echo end >> "c:\admin\backup\latest%counter%.txt"
time /t >> "c:\admin\backup\latest%counter%.txt"
0
Comment
Question by:Techsupportwhiz
  • 3
3 Comments
 
LVL 63

Accepted Solution

by:
SysExpert earned 500 total points
ID: 17151220
Unfortunately you can not copy files to an FTP server, but you could use a command line FTP program to do the work with a little scripting.

Even the built in FTP client in wondows can do some of this.

I would post a link in the MS DOS TA for more info.

I hope this helps !
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 17151226
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 17151231
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now