Solved

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

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
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…

839 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