--backup requires remote connection?

Sean M. Kaiser skaiser at northmontschools.com
Mon May 3 18:30:52 GMT 2004


Wayne Davison <wayned at samba.org> writes:
>On Fri, Apr 30, 2004 at 04:19:35PM -0400, Sean M. Kaiser wrote:
>> [skaiser-pbg4:~] localska% /usr/local/bin/rsync --delete --backup
>> --backup-dir=/Users/localskaiser/archive -a /Users/localskaiser/source
>> /Users/localskaiser/target
>
>This command works fine for me when used as you described.
>
>> stat "/Users/localskaiser/archive/source/a/b/c/newfile.txt" failed: No
>> such file or directory
>
>I assume that message is coming from the code set_perms() code that is
>trying to change the permissions on the newly-created backup file.  So,
>something may have gone wrong during the creation of that backup file.
>Check the permissions and such for the backup path (though it's weird
>if rsync didn't display some other error before the stat one).
>
>> [skaiser-pbg4:~] localska% /usr/local/bin/rsync --delete --backup
>> --backup-dir=/Users/localskaiser/archive -a
>skaiser at rsync::skaiser/current
>> /Users/localskaiser/target
>
>That command uses a different backup dir:  ".../archive/current" rather
>than ".../archive/source".
>
>..wayne..

Wayne,

Here's another test.  Information now looks like:

source = /Applications (permissions: owner=root, group=admin, 775)
target = /Volumes/backups/current/leopard (permissions: owner=root,
group=admin, 775)
backup-dir = /Volumes/backups/archives/leopard/week/mon (permissions:
owner=root, group=admin, 777)

I created a file (temp) in the source, ran rsync (command below), which
backed it up.  Then I removed it, and ran rsync again, and get the error. 
I'm running rsync as root (sudo -s to get a root shell) each time.  It
looks to me like it's not creating the folder hierarchy inside the
backup-dir location.

/usr/bin/rsync -vv -a --stats --eahfs --backup
--backup-dir=/Volumes/backups/current/leopard/../../archives/leopard/week/mon
--delete -z /Applications /Volumes/backups/current/leopard
building file list ... 
expand file_list to 4000 bytes, did move
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
done
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
expand file_list to 4000 bytes, did move
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
deleting in Applications
backup_dir is
/Volumes/backups/current/leopard/../../archives/leopard/week/mon
stat
"/Volumes/backups/current/leopard/../../archives/leopard/week/mon/Applications/temp"
failed: No such file or directory
keep_backup Applications/temp ->
/Volumes/backups/current/leopard/../../archives/leopard/week/mon/Applications/temp
deleting Applications/temp

The same thing happens when I use the command:

/usr/bin/rsync -vv -a --stats --eahfs --backup
--backup-dir=../../archives/leopard/week/mon --delete -z /Applications
/Volumes/backups/current/leopard
building file list ... 
expand file_list to 4000 bytes, did move
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
done
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
expand file_list to 4000 bytes, did move
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
deleting in Applications
backup_dir is ../../archives/leopard/week/mon
stat
"/Volumes/backups/current/leopard/../../archives/leopard/week/mon/Applications/temp"
failed: No such file or directory
keep_backup Applications/temp ->
../../archives/leopard/week/mon/Applications/temp
deleting Applications/temp

Another run, with yet another way (in my eyes) to specify the backup-dir:

/usr/bin/rsync -vv -a --stats --eahfs --backup
--backup-dir=/Volumes/backups/archives/leopard/week/mon --delete -z
/Applications /Volumes
/backups/current/leopard
building file list ... 
expand file_list to 4000 bytes, did move
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
done
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
expand file_list to 4000 bytes, did move
expand file_list to 8000 bytes, did move
expand file_list to 16000 bytes, did move
expand file_list to 32000 bytes, did move
expand file_list to 64000 bytes, did move
expand file_list to 128000 bytes, did move
deleting in Applications
backup_dir is /Volumes/backups/archives/leopard/week/mon
stat "/Volumes/backups/archives/leopard/week/mon/Applications/temp"
failed: No such file or directory
keep_backup Applications/temp ->
/Volumes/backups/archives/leopard/week/mon/Applications/temp
deleting Applications/temp

All three eventually return the following results when rsync is finished:

total: matches=0  tag_hits=0  false_alarms=0 data=73901

Number of files: 18411
Number of files transferred: 7
Total file size: 210444482 bytes
Total transferred file size: 12296 bytes
Literal data: 73901 bytes
Matched data: 0 bytes
File list size: 857230
Total bytes written: 888825
Total bytes read: 160

wrote 888825 bytes  read 160 bytes  45588.97 bytes/sec
total size is 210444482  speedup is 236.72
rsync error: some files could not be transferred (code 23) at main.c(639)
backup: rsync complete from leopard at Mon May  3 14:25:02 EDT 2004,
status=23

I'm assuming that the three sets of "expand file_list" is the source, the
target, and the backup-dir, correct?

I know I'm doing something wrong, but I can't figure out what it is.  I
thought maybe I didn't understand the way to specify the backup-dir, but
I've tried three ways, and it doesn't seem to care.

Thanks,
Sean



More information about the rsync mailing list