Solved

rsync -b backup option on versions supporting HFS

Posted on 2006-06-09
3
859 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 62

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 62

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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

729 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