copying files from shell to network drive
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > copying files from shell to network drive




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    copying files from shell to network drive  
thor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 12:19 AM

[Previously posted in wrong cat, sorry for spam]

Hi, I am a new unix admin.

My webserver hard drive is filling up quick and I am trying to move
some files to a networked windows server that has a burner to perform
backup.


I am not sure the command to pass in the shell to make this happen.  in

windows I would map a path to the computer in question and use the
console to copy.  Do I do something similar to for unix system?


I am thinking something like...
$  cp fooboo.tar   //winbox1/backup


or
$ cp fooboo.tar  X:/backup/


Thanks in advance.






[ Post a follow-up to this message ]



    Re: copying files from shell to network drive  
Cezary Morga


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 12:19 AM

thor wrote:

> I am not sure the command to pass in the shell to make this happen.  in
>
> windows I would map a path to the computer in question and use the
> console to copy.  Do I do something similar to for unix system?
>
>
> I am thinking something like...
> $  cp fooboo.tar   //winbox1/backup

If you're using smbfs (or whatever the name is) to mount windows shares on
unix box, or do this manualy then yes, you can simply copy the file. You
can also use smbclient (which is ftp like) to copy the file to windows
shares, though I'm not sure whether it can run in non-interactive mode. In
both cases you'll have to use samba.

You can also set some ftp server on windows machine...
--
Cezary Morga





[ Post a follow-up to this message ]



    Re: copying files from shell to network drive  
thor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 06:19 PM

illegal option -t ?


# mount -t smbfs -o username=administrator,password=fooboo
//file1/marketing/web /opt/thor
mount: illegal option -- t
Usage:
mount [-v | -p]
mount [-F FSType] [-V] [current_options] [-o specific_option
s]
{special | mount_point}
mount [-F FSType] [-V] [current_options] [-o specific_option
s]
special mount_point
mount -a [-F FSType ] [-V] [current_options] [-o specific_op
tions]
[mount_point ...]
#
-------------------------



On Jan 24, 2:17 pm, Cezary Morga <ceza...@NOSPAMdata.pl> wrote:
> thor wrote: 
> 
> 
> unix box, or do this manualy then yes, you can simply copy the file. You
> can also use smbclient (which is ftp like) to copy the file to windows
> shares, though I'm not sure whether it can run in non-interactive mode. In
> both cases you'll have to use samba.
>
> You can also set some ftp server on windows machine...
> --
> Cezary Morga






[ Post a follow-up to this message ]



    Re: copying files from shell to network drive  
Todd H.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 06:19 PM


That's an odd mount command to my eyes anyway.

Looks like your mount using -F for what most use -t for.  Consult your
man page for details, but smbfs is the file system type.


"thor" <Bryce4@gmail.com> writes:
> illegal option -t ?
>
>
> # mount -t smbfs -o username=administrator,password=fooboo
> //file1/marketing/web /opt/thor
> mount: illegal option -- t
> Usage:
> mount [-v | -p]
> mount [-F FSType] [-V] [current_options] [-o specific_opti
ons]
>         {special | mount_point}
> mount [-F FSType] [-V] [current_options] [-o specific_opti
ons]
>         special mount_point
> mount -a [-F FSType ] [-V] [current_options] [-o specific_
options]
>         [mount_point ...]
> #
> -------------------------
>
>
>
> On Jan 24, 2:17 pm, Cezary Morga <ceza...@NOSPAMdata.pl> wrote: 
>

--
Todd H.
http://www.toddh.net/





[ Post a follow-up to this message ]



    Re: copying files from shell to network drive  
thor


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 06:19 PM

I tried with -F and here is the error.

"mount: operation not applicable to FSType smbfs"

I don't know anything about Samba if that has any bearing, really just
a newbie.  Appreciate the help.

On Jan 25, 9:27 am, comph...@toddh.net (Todd H.) wrote:
> That's an odd mount command to my eyes anyway.
>
> Looks like your mount using -F for what most use -t for.  Consult your
> man page for details, but smbfs is the file system type.
>
>
>
>
>
> "thor" <Bry...@gmail.com> writes: 
> 
> 
> 
> 
> 
> Todd H.http://www.toddh.net/- Hide quoted text -- Show quoted text -






[ Post a follow-up to this message ]



    Re: copying files from shell to network drive  
Doug Freyburger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-25-07 06:19 PM

"thor" <Bry...@gmail.com> wrote:
>
> I don't know anything about Samba if that has any bearing, really just
> a newbie.  Appreciate the help.

I suggest three steps:

1) Go to your Windows box and use ftp to pull the files there then
delete
them on the Unix side to free up space and give you time.

2) Learn what options are available through Samba.  The more common
use is to use the server side of Samba on the Unix end to export your
directory tree as SMD/CIFS then map it as a shared drive on the Windows
end.

3) Learn more Samba and get smbfs working so you can push the files
from the Unix side to make scripting easier.






[ Post a follow-up to this message ]



    Re: copying files from shell to network drive  
Sambuh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-01-07 06:18 PM

On Jan 25, 1:07 pm, "thor" <Bry...@gmail.com> wrote:[vbcol=seagreen]
> I tried with -F and here is the error.
>
> "mount: operation not applicable to FSType smbfs"
>
> I don't know anything about Samba if that has any bearing, really just
> a newbie.  Appreciate the help.
>
> On Jan 25, 9:27 am, comph...@toddh.net (Todd H.) wrote:
> 
> 
> 
> 
> 
> 
> 
> 

Not sure if this will help you or not, but i do the same thing that
you are talking about. I run backups and then copy them off to a
windows share by doing the following...

I created a directory to mount the share to and then mount the share

# mkdir -p /mnt/joescomp/joe
# mount -t cifs //joescomp/joe -o username=joe /mnt/joescomp/joe

The just cp or mv files to that location...

Hope this helps.






[ Post a follow-up to this message ]



    Re: copying files from shell to network drive  
Sir Chewbury Gubbins


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-02-07 06:16 PM

Sambuh the Monkey was never naughty:
>
> Not sure if this will help you or not, but i do the same thing that
> you are talking about. I run backups and then copy them off to a
> windows share by doing the following...
>
> I created a directory to mount the share to and then mount the share
>
>     # mkdir -p /mnt/joescomp/joe
>     # mount -t cifs //joescomp/joe -o username=joe /mnt/joescomp/joe
>
> The just cp or mv files to that location...

Or install the cygwin (spit) SSH daemon on the windows box and use scp
to copy the file over.

Choobs

--
Sir Chewbury Gubbins <chewbury.gubbins@nelefa.org>
http://www.nelefa.org - Gaming and Ramblings from the Shiny part of the worl
d

Abu the monkey was never naughty.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:01 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register