1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

FTP Backup-er

Discussion in 'Windows XP' started by rotating777, Apr 5, 2010.

Thread Status:
Not open for further replies.
Advertisement
  1. rotating777

    rotating777 Account Closed Thread Starter

    Joined:
    Apr 5, 2010
    Messages:
    2
    I want for it to grab .doc, .docx, .jpg, and .pdf files in my user profile. I want it to run on startup and for it to skip all the files that have been uploaded already, so I can get new files everyday. Help me please :(
     
  2. cybersloth

    cybersloth

    Joined:
    Dec 16, 2009
    Messages:
    327
    you need to post way more info in order for someone to help you.

    Start with
    Your OS
    The program you are using
    The FTP site you are using

    :)
     
  3. rotating777

    rotating777 Account Closed Thread Starter

    Joined:
    Apr 5, 2010
    Messages:
    2
    OS: Windows XP SP2
    Program: I need for it to be CMD.
    Site: DriveHQ
     
  4. TheOutcaste

    TheOutcaste

    Joined:
    Aug 7, 2007
    Messages:
    9,028
    One user profile, or more than one?
    Will someone be there to enter the FTP password when this is run?
    If not, the FTP password will be stored as plain text in the batch file, so anyone who can access the script can see the password. Even if converted to an exe, it's easy to get the password out.

    Are these files all in the same folder?
    If not, will they be uploaded to the same folder?
    Is each file type in one folder/folder tree, or are they mixed?
    If uploaded to the same folder, do you need to check for duplicate file names?
    If uploaded to different folders will the folder names be the same as in the Source tree?
    Will the folders already exist, or do they need to be created first?
    If a file no longer exists in the Source, when (if ever) should it be deleted from the FTP Server?
    Upload hidden and/or system files?
    What is the max file size you can upload, and do you need the program to check each file to make sure it's not over the limit?
    Is there a total size limit that needs to be checked?
    Are any of the files encrypted?

    • If so, does the FTP server support encrypted files?
    • If the server doesn't support encrypted files, how will you keep track of which files are encrypted and which are not?
    How will you chose the files, or do you want to upload everything, even if it already exists?
    If you only want to upload changed/new files you have two methods:

    1. Store a date on the FTP server of the last upload that you have to first download to use to check for new files, along with a list of current files.
    2. Keep a local backup to compare to.
     
  5. PatrickMc

    PatrickMc

    Joined:
    Jun 5, 2009
    Messages:
    14
    You can use the script http://www.biterscripting.com/helppages/SS_FTPUpload.html to upload an entire directory structure. Depending on whether one or multiple users, select the top directotry appropriately (argument localpath() ). The script creates subdirectories as needed on the FTP server.

    That script uploads all files using the command

    Code:
    [SIZE=2]lf -n "*" $localdir ($ftype=="f") > $localfilelist[/SIZE]
     
    
    To upload only .doc, .docx, .jpg, and .pdf files, change that command to

    Code:
     
    [SIZE=2]lf -n "*.doc" $localdir ($ftype=="f") > $localfilelist[/SIZE]
     
    
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/914781

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice