RE: Help writing a back up script

From: Hayes, Ian (Ian.Hayes_at_wynnlasvegas.com)
Date: 10/22/05

  • Next message: Richard Parry: "RE: remote desktop question"
    Date: Fri, 21 Oct 2005 15:21:36 -0700
    To: "Juan B" <juanbabi@yahoo.com>
    
    

    > -----Original Message-----
    > From: Juan B [mailto:juanbabi@yahoo.com]
    > Sent: Thursday, October 20, 2005 2:24 AM
    > To: security-basics@securityfocus.com
    > Subject: Help writing a back up script
    >
    > Hi guys,
    >
    > I need to back up some data to remote ftp server on
    > weekly basis.
    >
    > the local machine is xp. how can I write a script that
    > logs in to the ftp ,deletes a a file in the ftp server
    > and uploads the data?

    Write a text file that has the FTP commands you want to execute:

    ftp somehost
    USER myuser
    PASS mypass
    DELETE oldfile
    PUT newfile

    Save as ftpscript.txt

    Invoke the script like so:
    ftp -s:ftpscript.txt

    --
    Ian Hayes | Senior Systems Engineer
    Wynn Las Vegas
    3131 South Las Vegas Blvd, Las Vegas, NV 89109
    Ph (702) 770-3252 | Cell (702) 266-6002
    Ian.hayes@wynnlasvegas.com
    

  • Next message: Richard Parry: "RE: remote desktop question"

    Relevant Pages

    • Re: fetch / wget problem
      ... > I'm trying to write a script which gets a file from remote FTP server. ... You may be able to do this with a .netrc in the user folder that's running ...
      (freebsd-questions)
    • Re: FTP delete problem
      ... the problem was a lock to a file that the ftp get worked, ... Bernard Cheah ha scritto: ... generate by schedule task. ... If i manually execute the script, the output wrote, but by schedule ...
      (microsoft.public.inetserver.iis.ftp)
    • Re: FTP delete problem
      ... Yes, the script looking the previous day log file, but when it's still ... Bernard Cheah ha scritto: ... the problem was a lock to a file that the ftp get worked, ... generate by schedule task. ...
      (microsoft.public.inetserver.iis.ftp)
    • SUMMARY: AUTOMATED FTP WITH TWO LOGINS
      ... The script is now working, Michael DeSimone made the below suggestion: ... AUTOMATED FTP WITH TWO LOGINS ... can't find list of remote files, ...
      (SunManagers)
    • Re: Scripted FTP transfer
      ... Rather then specify the username and password in your script, ... going to run the ftp script, ... If you are running this from root, the .netrc will be created in / ... I'm trying to write a FTP command file on the fly to ...
      (comp.unix.sco.misc)