The Church Media Community
Equipping You to Communicate Effectively
support CMN & share a
library of 19K+ images, videos, etc
Go Pro!
 
Go Back   The Church Media Community > Computers > Linux
Forgot Password?
                          Register

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old Monday, March 17th, 2008, 10:47 AM
Tim Eason - ChurchMedia.net Community Founder 1999-2008
Spectator

 
Help with mput command

I need the proper syntax to ftp a whole directory in *nix using "mput"
Reply With Quote Start a New Topic From This Comment
  #2 (permalink)  
Old Monday, March 17th, 2008, 11:02 AM
hussra's Avatar
Richard Huss

 
 Join Date: May 2006 
 Last Online: Tuesday, May 8th, 2012 
 Blog Entries: 3
lcd sourceFolderName
cd destinationFolderName
binary
mput *

Or am I missing something?
Reply With Quote Start a New Topic From This Comment
  #3 (permalink)  
Old Monday, March 17th, 2008, 11:04 AM
hussra's Avatar
Richard Huss

 
 Join Date: May 2006 
 Last Online: Tuesday, May 8th, 2012 
 Blog Entries: 3
Oh yes, and

prompt

to toggle on and off the prompt before each file is transferred. Apparently on some systems this command is "toggle prompt".
Reply With Quote Start a New Topic From This Comment
  #4 (permalink)  
Old Monday, March 17th, 2008, 11:08 AM
Tim Eason - ChurchMedia.net Community Founder 1999-2008
Spectator

 
I got that far. I can't get it to resend into the subdirectories. I've tried -R, but I guess I'm not putting it in the right place.
Reply With Quote Start a New Topic From This Comment
  #5 (permalink)  
Old Monday, March 17th, 2008, 11:16 AM
hussra's Avatar
Richard Huss

 
 Join Date: May 2006 
 Last Online: Tuesday, May 8th, 2012 
 Blog Entries: 3
Looks like there is no such option in regular ftp. If you have the disk space, your best bet is probably to tar and gzip the whole lot up and ftp that single file.

tar -z -cf /wherever/backup.tgz /some/directory/to/backup

then transfer backup.tgz
Reply With Quote Start a New Topic From This Comment
  #6 (permalink)  
Old Monday, March 17th, 2008, 11:18 AM
Tim Eason - ChurchMedia.net Community Founder 1999-2008
Spectator

 
I found this:

Quote:
The mget (multiple get) command retrieves multiple files from a remote system with just one request. It interprets asterisks as wildcards and prompts you for a yes or no response for each file. It has no recursive features, meaning that although you can use mget to copy all the files in a given directory (mget *), you cannot use mget to get all the files in a given directory and all directories beneath it. You must use mget for each directory, one at a time.
I'm going to try a different ftp interface.
Reply With Quote Start a New Topic From This Comment
  #7 (permalink)  
Old Monday, March 17th, 2008, 11:19 AM
Tim Eason - ChurchMedia.net Community Founder 1999-2008
Spectator

 
Quote:
Originally Posted by hussra View Post
Looks like there is no such option in regular ftp. If you have the disk space, your best bet is probably to tar and gzip the whole lot up and ftp that single file.

tar -z -cf /wherever/backup.tgz /some/directory/to/backup

then transfer backup.tgz
I thought of that too, but there's another problem with that. The MXC files are so big that I would have to make multiple tar files because of the tar file size limit. PAIN!!
Reply With Quote Start a New Topic From This Comment
  #8 (permalink)  
Old Monday, March 17th, 2008, 11:30 AM
Tim Eason - ChurchMedia.net Community Founder 1999-2008
Spectator

 
GRRRRR.... When trying to just move the contents of a directory I'm getting "arguments too long"

Does anyone know of another way to ftp files from one IP to another? I know I've used a different method in the past, but I just can't remember what it was.
Reply With Quote Start a New Topic From This Comment
  #9 (permalink)  
Old Monday, March 17th, 2008, 11:40 AM
waynehoskins's Avatar
The Crazy Analog Guy
Become a CMN Professional Member!

 
 Join Date: May 2006 
 Last Online: Today 
There's a tar filesize limit? I know of the PKZIP two-gig cliff, but nothing in tar.

Try this:
tar -cvzf archive_name.tar.gz foo
(which it occurs to me is the same as the other one .. but I've used tar to make 12-gig archives before .. so it should work).
Or if you need deeper compression and can afford the extra time, pipe it through bzip2 instead of gzip:
tar -cvjf archive_name.tar.bz2 foo

Being the tape archiver, tar handles large files and large archives well.
Reply With Quote Start a New Topic From This Comment
  #10 (permalink)  
Old Monday, March 17th, 2008, 11:41 AM
waynehoskins's Avatar
The Crazy Analog Guy
Become a CMN Professional Member!

 
 Join Date: May 2006 
 Last Online: Today 
You're thinking of scp, which uses ssh?
Reply With Quote Start a New Topic From This Comment
  #11 (permalink)  
Old Monday, March 17th, 2008, 11:43 AM
hussra's Avatar
Richard Huss

 
 Join Date: May 2006 
 Last Online: Tuesday, May 8th, 2012 
 Blog Entries: 3
If you have ssh rather than ftp access to the other box, rsync is your man but I can't remember the command-line args just now and need to head home. Something like

rsync -avz -e ssh /directory/to/backup :/backup/destination/directory/
Reply With Quote Start a New Topic From This Comment
  #12 (permalink)  
Old Monday, March 17th, 2008, 11:45 AM
waynehoskins's Avatar
The Crazy Analog Guy
Become a CMN Professional Member!

 
 Join Date: May 2006 
 Last Online: Today 
And with scp (secure copy), it's

scp files_to_backup user@host:remotepath
Reply With Quote Start a New Topic From This Comment
Reply

  The Church Media Community > Computers > Linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:



Add to Google


Register Now for FREE!
Our records show you have not yet registered to our community. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Agree to forum rules 


All times are GMT -6. The time now is 05:58 PM.

   
 
© 1995-2008, ChurchMedia™, ChurchMedia LLC

SEO by vBSEO 3.1.0