?
Solved

downloading files and store.

Posted on 2006-11-22
6
Medium Priority
?
238 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
[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
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
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 
LVL 96

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 96

Accepted Solution

by:
Lee W, MVP earned 1000 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
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.
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…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 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