Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

shell script backup will not unzip

Featured Replies

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

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.

  • Author

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.