Solved

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

Posted on 2006-07-20
3
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Solid State Drive Performance Tips: Solid state storage technology is now a standard.  After testing and using several different brands and revisions of SSD's over the years I have put together a collection of tips,tools and suggestions that I ha…
Having issues meeting security compliance criteria because of those pesky USB drives? Then I can help you! This article will explain how to disable USB Mass Storage devices in Windows Server 2008 R2.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
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…

717 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