Solved

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

Posted on 2006-07-20
3
237 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
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 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…

749 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