Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I transfered 15gb over the network. I have aother 10 to go. How do i transfer via cmd line without overwriting existing files? I want to skip files so i dont store it again. I dont need unique names for this.

share|improve this question
    
Could be a bit more specific? transfer what? – DaveParillo Nov 11 '09 at 5:30
    
See "FTP software that checks data diffs?" at superuser.com/questions/68411/… and "Syncronizing files over FTP" at superuser.com/questions/33856/syncronizing-files-over-ftp – Arjan Nov 11 '09 at 8:19

The man page for ftp lists the sunique and runique FTP subcommands which toggle saving files with unique filenames, as a way of avoiding overwriting existing files:

ie, file.1 if file exists, file.2 if file.1 exists, etc.

These are ftp commands, not OS command-line options for ftp, but I think the .netrc file could be used to toggle sunique or runique from the default OFF state when ftp starts.

share|improve this answer
    
I am not worry about overwriting, just writing the same file again when i dont need to (thus the skipping which i forgot to mention!). Can i use sunique to plainly skip a file? I am thinking i should wipe the remote folder and start clean early during the day. – acidzombie24 Nov 11 '09 at 7:09

Between two Unix-based systems, why not just use rsync instead? It was written precisely to solve this problem.

share|improve this answer

In addition to the other answers posted, wget should do anything you require quite easily.

share|improve this answer
    
That's quite an odd (or creative) use of wget. How would one use that? – Arjan Nov 11 '09 at 8:16
    
would i need a wput ;). The machine on the other send (ftp host) is a windows while this one is a mac. – acidzombie24 Nov 11 '09 at 10:25
    
Arjan, "wget --no-clobber -c sunsite.doc.ic.ac.uk/ls-lR.Z"; will download all files from the FTP site at sunsite, while not clobbering local files. Acidzombie, there are wget binaries available for the Mac (install via Fink) and Windows (wget.addictivecode.org/FrequentlyAskedQuestions#download). – CarlF Nov 11 '09 at 15:14
    
Wget for the win! I'm up-voting this one. – pbr Nov 12 '09 at 22:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .