Jump to content

Script to copy files from Mac to Windows server


Recommended Posts

Posted (edited)

Hi All,

 

Does anyone have a script that will copy the whole contents of the local /users folder to a network location (a windows server). I know how to do this with windows but haven't got a clue on the macs. We have ARD so can send it out with that.

 

Thanks

Edited by mike86
  • 2 weeks later...
Posted (edited)

Hi there,

 

You can mount the windows share using the mount command:

 

mount -t smbfs //username:password@MACHINENAME/SHARENAME

cp /Users/username/Desktop/foldername/* /Volumes/SHARENAME/mydirectory

 

Make sure to run as console user: root and let me know if it works out well

 

The smiley face is actually an 'at' sign.

 

Thanks.

 

Edited by rupen_centrastage
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...