FTP Backup-er

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

rotating777

Thread Starter
Account Closed
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 :(
 
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

:)
 

rotating777

Thread Starter
Account Closed
Joined
Apr 5, 2010
Messages
2
OS: Windows XP SP2
Program: I need for it to be CMD.
Site: DriveHQ
 
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.
 
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]
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Top