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.
-
Could be a bit more specific? transfer what?– DaveParilloNov 11, 2009 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– ArjanNov 11, 2009 at 8:19
3 Answers
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.
-
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.– user3109Nov 11, 2009 at 7:09
Between two Unix-based systems, why not just use rsync instead? It was written precisely to solve this problem.
In addition to the other answers posted, wget should do anything you require quite easily.
-
-
would i need a wput ;). The machine on the other send (ftp host) is a windows while this one is a mac.– user3109Nov 11, 2009 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).– CarlFNov 11, 2009 at 15:14
-