Solved

rsync -b backup option on versions supporting HFS

Posted on 2006-06-09
3
846 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
EMC VNX  storage pool  Vs  raid group  question 3 120
unix scripting question 1 89
aix tls version 6 217
What are recommended OS for exim mail server? 10 101
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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

25 Experts available now in Live!

Get 1:1 Help Now