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

x
?
Solved

FTP folder file backukp

Posted on 2003-11-24
11
Medium Priority
?
1,205 Views
Last Modified: 2011-08-18
I have a ftp server.
I update the data there from different locations.
Each user has their directory.

I want to write a script which I can schedule to backup my data.

I am on a windows XP box.
My Server is 2003.

The answer that can provide me with the scirpt will get the points.

-------------------------------------------------------------------
Hyperlinks do not count as answers.
It is not possible does not count as an answer.
-------------------------------------------------------------------

Thanking You
Smit.
0
Comment
Question by:ECIQue
[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
11 Comments
 
LVL 11

Assisted Solution

by:adonis1976
adonis1976 earned 450 total points
ID: 9810400
i would try doing it this way.

have a text file say as copy.txt. type these lines pertaining to your ftp server. "lcd" is the local location on your computer where you want to backup the data.

open xxx.xxx.xxx.xxx
username
password
cd /
binary
hash
lcd c:\
mget *.*
bye


and then have a file backup.bat

type the following line in it

ftp -i -s:copy.txt

schedule the batch file at a particular by using your windows scheduler. You can find this in your control panel of windows XP.
 Let me know if that helps
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 9811177
btw, xxx.xx.xx.xx stands for the IP address of the remote server
0
 
LVL 16

Accepted Solution

by:
_nn_ earned 1050 total points
ID: 9811507
Alternatively, get a better FTP client here : http://www.ncftpd.com/download/
(direct link to the Win32 binaries ftp://ftp.ncftp.com/ncftp/binaries/ncftp-3.1.6-win32.exe)

Then, your script will be a simple one-liner, see http://www.ncftpd.com/ncftp/doc/ncftpget.html (specifically, the -R command-line option)
0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 

Author Comment

by:ECIQue
ID: 9811720
adonis1976
  Your script gets files only from that folder
  It does not do a recursive ftp.

_nn_
  Your program works.
  I like it,
  but then, I try avoiding third party softares.
  So, if adonis cant come up with a script by tommorrow,
  You will have the points.
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 9811760
ok.. try this..

replace the line

mget *.*

with

get -r *.*
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 9811762
that is get space -r *.*
0
 

Author Comment

by:ECIQue
ID: 9812624
ftp> get -r *.*
Error opening local file *.*.
> *.*:Invalid argument
ftp> bye
221

0
 

Author Comment

by:ECIQue
ID: 9812627
i did type in
ftp> get [space] -r *.*

thanks.
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 9812979
i just looked at the MAN pages for ftp and it is not possible since the subdirectories are dependent on the file structure of the OS. So cany copy sub directories using ftp. so you can award -nn- if you wish.
0
 

Author Comment

by:ECIQue
ID: 9813860
You get Partial credits atleast for an honest answer.

Thank you experts

Always
Smit.
0
 
LVL 1

Expert Comment

by:scotMcalpine
ID: 9819803
spend some money on software. (if its worth doing right)
I recommend handy-backup.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

618 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