Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5496 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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 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 " "

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 permissiona are fmsadmin read & write

the archive permissions are user (me) read write; if copied to another mac the zip file will still not unzip

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

Posted

My first guess is that pkzip or gzip may be corrupt and isn't producing viable archives. System reinstall should do it but if you don't want to waste that time trying to copy those components from a similar machine might be worth a shot.

Posted

Hi vladisglad

good guess :)-) (who would of thunk?)

in terminal a simple:

ditto -V -c -k --rsrc ~/Desktop/aaa ~/Desktop/bbb.zip

produced same problem. Looks like an issue in handling the temporary paths.

even this fails:

ditto -c ~/Desktop/aaa ~/Desktop/bbb.zip

so basic CPIO is a problem (-j fails too)

Located ARchive Utility and replaced, but no improvement, so a system re-install I guess (no biggie)

/System/Library/CoreServices/Archive Utility.app

thanks

Chris

This topic is 5496 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.