Solved

downloading files and store.

Posted on 2006-11-22
6
229 Views
Last Modified: 2010-04-03
Hello All,
     I need a tool that can compress log files on windows xp machines and then send it via FTP to server in office. Is there such a tool. I connect to this machines via VPN. I would like to define file name format to distinguish and avoid overwriting of file. This are log files so if zip utility is included that would be wonderful. Sharewares are ok too. This task happens during off hours once a week.

--scientist
0
Comment
Question by:scientist060700
6 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 17996025
Could probably script such a tool - would that be an option for you?
0
 
LVL 7

Expert Comment

by:killbrad
ID: 17996840
0
 
LVL 1

Author Comment

by:scientist060700
ID: 17997613
sure scripting tool would work too.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 17999280
Provide a sample of where the files are, their names, and where you want them put and we can come up with a script.  Basically, just a batch file.
0
 
LVL 1

Author Comment

by:scientist060700
ID: 18096512
Here is the thing,

Machines are located in Europe and storage machines are here in states. I need to let's say get all files from C:\logs\*.log and zip them in windows and login to ftp site and put it there. How would I do that?

I am not sure if it's clear let me know if more info is needed. I am much more experience on linux side so I can do Linux cron jobs to then back to tapes or external drives but I need help with batch file to zipping and ftp'ing part of the process.

--scientist.
0
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
ID: 18099543
Since you're a *nix person, I assume you know how to use command line FTP programs, get, put, bin, etc.
So create an FTP script - in windows, such a script consist entirely of the responses you would type upon connecting to an FTP site.    For example:

username
password
bin
lcd c:\temp
put somefile.ext
byte

Save the ftp script as ftpscript.scr

Assuming you download and use Info-ZIP (free zip utility)


@echo off
cd /d c:\logs
zip -9 alllogs.zip *.log
ftp -i -s:ftpscript.scr


Now you have further options - for example, you can use output redirection and have the ftpscript.scr file created in the batch file.  You can also have the batch file (re)name things based on dates or other criteria. (exactly what criteria dictates how hard it might be).
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
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…

813 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

17 Experts available now in Live!

Get 1:1 Help Now