Solved

rsync -b backup option on versions supporting HFS

Posted on 2006-06-09
3
843 Views
Last Modified: 2012-06-21
OS X 10.4.6 (BSD)

I was using the 'standard' versions (i.e. non-HFS supporting) of rsync with the backup -b option so that I could do nightly incrementals.  This seemed to be running fine. Changes to existing backed up files got copied to the appropriate path(s) on the target.

BUDIR=myDirectoryName
time /usr/local/bin/rsync -a -b --suffix=# --backup-dir=$BUDIR /Users /Volumes/nephron

However, when I started using a version (2.6.0 protocol version 27) supporting HFS and choosing the extended attributes option, the sync works, but the copy to the backup directories doesn't work unless the path is already there.

time /usr/local/bin/rsync -eahfs -a -b --suffix=# --backup-dir=$BUDIR /Users /Volumes/nephron

That is, it appears that the non-HFS version creates the backup directory path if needed, but the HFS-supporting version does not automatically create the path.  However, if the path is already there, the non-HFS version does make a good copy.

Anyone else seen this?  Any suggested workarounds?

Thanks
je
0
Comment
Question by:jesterepsilon
  • 2
3 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 16875731
Any report from "uname -a" comand ???
0
 

Author Comment

by:jesterepsilon
ID: 16887041
Darwin mydnsname.org 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar  7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 16889770
There is newer rsync: rsync  version 2.6.8  protocol version 29, not sure if that applies to OS-X

find /src/dir -type d | (cd /dest/dir ;  xargs mkdir -p )
is quick idea to create a path tree if more recent rsync is not an option.


0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded‚Ķ
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now