How could one use a ftp command to get everything from within the working directory down, including subfolders & files.
And possibly,retain the tree structure.
Yeah, that would be quick & dirty fix, but I don't have a tar capable login on that machine, only ftp access.
It's a remote machine that stores "geebee" captured streams of cellphone communications, it listens between base stations & base station controller. Capture all your favorite friends calls in just one go!
But, I need to write a little script that goes checking every day and downloads the files, but files have random names & are stored in subfolders.
FTP can't use wildcards huh ?
Iga_Duma, sorry, didn't appreciate you only had ftp access. ftp can use wildcards in terms of mgetting and mputting files (multiple gets and multiple puts), but you'd probably need to traverse each of the source directories using cd within ftp. If you're using mput and mget within a script, it would be adviseable to use ftp -i <IP address> to turn off interactive prompting for each filename (as long as you're sure you won't be overwriting things you want on the destination machine!).
I'm almost sure there's an ftp (gtar possibly?) variant which allows tarring on the fly as files are transferred, but as I've never used it, others may be able to advise better. Best wishes.
Thanks for the info,
I also seem to vaguely remember something with FTP and tarring-on-the-spot.
Maybe someone on the forum knows it a lil bit more....I'm hoping!
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.