Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2006-07-20
3
Medium Priority
?
244 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
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…
Suggested Courses

610 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