Mac Help Forums


Reply
Thread Tools Display Modes

rsync shell script

 
New Member
Join Date: Feb 2007
Posts: 1
 
      16th February 2007
Hi all,

I am interested in writing a shell script which will mount a network drive, rsync a local drive to the now attached network drive and then unmount the drive. I have a readynas600 attached to my home network. The readynas supports may different file network protocols including afp and smb.

Thanks in advance for your assistance

Vince
 
Reply With Quote
 
 
 
 
New Member
Join Date: Nov 2011
Posts: 3
 
      17th November 2011
I'm not quite sure about the easiest way of mounting remote file systems via shell.

you could use the open command "open smb://remote.host/remoteshare"
mounts under /Volume/remoteshare

or you could use the mount_smbfs command "mkdir /tmp/remote ; mount_smbfs //user(E-Mail Removed)/remote/share /tmp/remote"
mounts under /tmp/remote

Once the device is mounted you can use the following rsync command;

rsync -a /local/path /Volumes/remoteshare

if you have used mount_smbfs you can use umount to unmount the filesystem "umount /tmp/remoteshare"

if you used open, then you need to use disktool to unmount. "disktool -e /Volumes/remoteshare"

hope this helps (some 4 years later!)
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C-shell Script to Bash Script? qquito Mac 5 2nd August 2007 09:19 PM
Need help with shell script jshock Mac 1 25th May 2006 08:15 PM
rsync, cp, disk image, or tar for backup script on OSX? Evan Apps 14 20th November 2005 06:40 PM
rsync, cp, disk image, or tar for backup script on OSX? Evan Mac 14 20th November 2005 06:40 PM
Can you help with this shell script? Rowland McDonnell UK Macs 4 5th April 2004 12:46 PM


All times are GMT +1. The time now is 10:17 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
New book about Steve Jobs << take part in it!
Arjan (40 Minutes Ago, 09:37 AM)

Help! Stupid computer is automatically logging me out
Elizaboo (11 Hours Ago, 10:41 PM)

URGENT Help. Crazy talk Mac!
Joeker (12 Hours Ago, 09:42 PM)

PDF Document
yura (22 Hours Ago, 12:13 PM)

Difficulties with internet speed (nothing to do with connection)
sammethh (1 Day Ago, 06:36 AM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51