dbTalk Databases Forums  

shell script backup archive will not unzip

comp.databases.filemaker comp.databases.filemaker


Discuss shell script backup archive will not unzip in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
105
 
Posts: n/a

Default shell script backup archive will not unzip - 11-05-2009 , 05:14 PM






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

Reply With Quote
  #2  
Old   
105
 
Posts: n/a

Default Re: shell script backup archive will not unzip - 11-07-2009 , 06:15 PM






corrupted OS level archive processes

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

as did a simple create archive

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.