Sponsored Content
Full Discussion: mac backup script in leopard
Top Forums Shell Programming and Scripting mac backup script in leopard Post 302206796 by woodgie on Wednesday 18th of June 2008 12:41:04 PM
Old 06-18-2008
Quote:
Originally Posted by Billy T
Hi all

I had a nice simple backup script on my mac running Tiger. I used an Automator 'Run Shell Script' command that loaded psync and backed up one directory on an external drive to a directory on another external drive. This was the command

/usr/local/bin/runpsync 0 0 0 '/Volumes/PORT80/Data Transfer' '/Volumes/BILL RAID/iPod Backup'

It only copied updated files, so it was fast and suited my needs very nicely. Unfortunately, psync no longer appears to work in leopard so I am looking for a new solution that is equally simple. I have checked out RSyncX and it seems very close to what I want but I can't work out how to extract a similar shell script to the one I had working before

Can anyone help?

Thanks in advance

PS I know very little about shell scripting
Well, there's plain old rsync which can be called from the command line and after a few, shall we say 'interesting' problems with it in Tiger Apple seem to have a stable version in Leopard. It also now properly handles resource forks which as a Mac user is very important (though getting less so). man rsync reveals that '-E' is the important option here.

There's also the most brilliant Carbon Copy Cloner from the venerable Mike Bombich. Don't ask me about it's scriptability though. Having said that his site is just about the last word when it comes to imaging etc. on the Mac. I'm sure you'll find something there to help you.
 

2 More Discussions You Might Find Interesting

1. OS X (Apple)

loading MAC X 5.0(leopard) on a X86 laptop

I want to install MAC X 5.x on my T60 Lenova laptop. I have the Original Mac X 5.0 installation media. I tried to install it on a blank hard disk in my laptop but it doesn't work. On the internet I found sites that offer torrent downloads but I can't use torrent downloads on my laptop. (Corp... (1 Reply)
Discussion started by: mndavies
1 Replies

2. OS X (Apple)

Use a Serial Console with Mac OS X Leopard

I'm trying to use an old Commodore 128D as a terminal to access OS X's shell via a serial port. I've used 'screen' and 'zterm' to ensure the two machines are successfully interfaced. Instructions for opening up the serial console on other Unix-y operating systems don't work with OS X Leopard. ... (3 Replies)
Discussion started by: joecassara
3 Replies
MOUNT_FTP(8)						    BSD System Manager's Manual 					      MOUNT_FTP(8)

NAME
mount_ftp -- mount a FTP filesystem SYNOPSIS
mount_ftp [-i] [-o options] ftp://host[:port][/path] node DESCRIPTION
The mount_ftp command mounts a FTP-enabled server directory at ftp://host[:port][/path] at the mount point indicated by node. If the -i option is not used, all the required information to establish a login to the remote server must be available in the ftp URL, including username & password if needed. The user ID for all files and folders is set to the user's real user ID. The group ID for all files and directories is set to unknown, and the permissions default to read and execute for user, group and other. The options are: -i Interactive mode, you are prompted for the username and password if you did not supply one in the url. -o Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. The rdonly option will be set even if it was not specified because mount_ftp does not allow files to be opened with write access on servers. ftp://host[:port][/path] The FTP-enabled server directory to mount as a volume. If port is not specified, then port 21 is used. If path is not specified, then the path "/" is used. node Path to mount point. EXAMPLES
The following example illustrates how to mount the FTP-enabled server directory ftp.apple.com/ at the mount point /Volumes/mntpnt/ mount_ftp ftp://ftp.apple.com/ /Volumes/mntpnt/ SEE ALSO
mount(2), unmount(2), mount(8) HISTORY
The mount_ftp command first appeared Mac OS X Version 10.2. RETURN VALUES
0 mount_ftp successfully mounted the server directory. [ENOENT] The server directory could not be mounted by mount_ftp because the node path is invalid. [ENODEV] The server directory could not be mounted by mount_ftp because it is not FTP-enabled or because it does not exist, or because node does not have proper access. [ECANCELED] The server directory could not be mounted by mount_ftp because the user did not provide proper authentication credentials. BUGS
mount_ftp only supports mounting read-only. Mac OS X June 6, 2003 Mac OS X
All times are GMT -4. The time now is 11:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy