Main Page | Report this Page
Computers Forum Index  »  Computer - Databases - Filemaker  »  shell script backup archive will not unzip...
Page 1 of 1    

shell script backup archive will not unzip...

Author Message
105...
Posted: Fri Nov 06, 2009 4:26 am
Guest
Hi All,

Mac OS X..5.8 fms10A

setting up a shell script backup from fms backup to shared directory on
same hard drive, as per ConnectingData Wim Decorte method. But the
resultant archive will not unzip.

the shell script as below

as a means of testing, running the script code in terminal, the archive
is created in the correct destination, and is of a size that reflects
the contents, but on un-zipping the archive, a progress bar suggests it
is unzipping but then at the end, an Archive Utility error message:

Unable to unarchive " <the bup name>"
into "backups"
(Error 1 - Operation not permitted)

Having done the same shell script in terminal on a different mac booted
from old clone volume, the result is fine, it unzips, the contents are
correct.

Fixing permissions has had no effect
the source directory permissions are fmsadmin read & write
the archive permissions are user (me) read write; if copied to another
mac the zip file will still not unzip

any ideas?



this run in terminal:
==========================
#!/bin/bash
# 5 Dec 2005 Rob Russell SumWare Consulting
source="/Library/FileMaker Server/Data/Backups/Daily/"
#
destination="/Users/Shared/backups/fmbackups"
#
suffix="$(date +%Y%m%d%H%M%S).zip"
sourcelink="/tmp/sumware001.ln"
ln -s "$source" $sourcelink
destinationlink="/tmp/sumware002.ln"
ln -s "$destination$suffix" $destinationlink
ditto -c -k --rsrc $sourcelink $destinationlink
rm -f $sourcelink
rm -f $destinationlink
==========================




generates this result:
==========================
Last login: Wed Nov 4 18:07:35 on ttys000
fmsrv:~ cb$ source="/Library/FileMaker Server/Data/Backups/Daily/"
fmsrv:~ cb$ #
fmsrv:~ cb$ destination="/Users/Shared/backups/fmbackups"
fmsrv:~ cb$ #
fmsrv:~ cb$ suffix="$(date +%Y%m%d%H%M%S).zip"
fmsrv:~ cb$ sourcelink="/tmp/sumware001.ln"
fmsrv:~ cb$ ln -s "$source" $sourcelink
fmsrv:~ cb$ destinationlink="/tmp/sumware002.ln"
fmsrv:~ cb$ ln -s "$destination$suffix" $destinationlink
ln: /tmp/sumware002.ln: File exists
fmsrv:~ cb$ ditto -c -k --rsrc $sourcelink $destinationlink
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.1a0n3h:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.bKKeu7:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.YCkjQC:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.gJaek6:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.PVpO9x:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.pAWxOS:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.P9xVjG:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.4WM2bC:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.NwKqjg:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.FNui4P:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.k8GOEd:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.81RPrM:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.54Gvxb:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.C7dT7S:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.rcmK0n:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.jSuwZJ:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.JKufKq:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.9n89OG:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.tt52YW:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.qKGJBh:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.ZTmUu8:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.lb7UQS:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.FY7XdM:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.EGPlKg:
No such file or directory
ditto: /var/folders/at/atTm0OGOGnyq0FPCOSZmnk+++TI/-Tmp-/ /.BC.q4Px5h:
No such file or directory
fmsrv:~ cb$ rm -f $sourcelink
fmsrv:~ cb$ rm -f $destinationlink
 
105...
Posted: Sun Nov 08, 2009 5:27 am
Guest
corrupted OS level archive processes

even this failed:
ditto -V -c ~/Desktop/aaa ~/Desktop/bbb.zip

as did a simple create archive
 
 
Page 1 of 1    
All times are GMT
The time now is Thu Nov 26, 2009 6:00 pm