The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Run a shell script from one host which connext to remote host and run the commands SN2009 Shell Programming and Scripting 6 04-13-2009 05:39 AM
Can BASH execute commands on a remote server when the commands are embedded in shell bash_in_my_head Shell Programming and Scripting 1 12-04-2008 01:51 AM
sco remote backup yackim SCO 1 03-02-2006 05:50 PM
remote backup solaris8in SUN Solaris 2 09-17-2003 06:30 AM
backup commands hnanong UNIX for Dummies Questions & Answers 2 02-26-2002 06:24 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-05-2009
retread retread is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 2
remote backup using shell commands

Hi all,

I'm hoping to tell a set of workstations to copy their user directories to an Apple file server on our LAN.

I've got the one part of the operation working. The below sequence tells a remote workstation to mount the file server and copy the user directory to a folder on the server named 'Test.'

mkdir /Volumes/mntpnt
mount_afp afp://username'colon'password@192.168.1.14/volumename/ /Volumes/mntpnt/
ditto -V /Users/ /Volumes/mntpnt/Test/


Here's what I'm wanting to figure out. I'm using Apple Remote Desktop to send the same command to 10 or more workstations. What I need to do is have the shell command parse the network sharing name of the workstation, then create a folder on the server using that name, then do the copy operation to that folder.

Thanks for any tips.
 

Bookmarks

Tags
backup, ditto, shell commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0