[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Problems dumping database (Mac limitation on su -c)

From: Jim Busser
Subject: Re: [Gnumed-devel] Problems dumping database (Mac limitation on su -c)
Date: Sun, 23 Oct 2011 18:22:00 -0700

On 2011-10-22, at 12:56 PM, Karsten Hilbert wrote:

>> I have (hopefully) somewhat improved this wiki page
> Thanks !

When on Mac OS calling tar as per the script

the flags


do not work as intended. W (verify) is not supported and, with only -cf on Mac, 
one gets an uncompressed .tar archive.

1. would you be happy to insert in


        # tar and test it 

the comment

        # Note: Mac OS requires 'tar -cjf'

2. where the script says

        # tar and test it
        if test -z ${VERIFY_TAR} ; then
                tar -cf ${BACKUP_FILENAME}.tar ${BACKUP_FILENAME}-database.sql 
                tar -cWf ${BACKUP_FILENAME}.tar ${BACKUP_FILENAME}-database.sql 
        fi ;

doesn't the test -z ${VERIFY_TAR} mean 'if verification is desired' in which 
case doesn't the W flag belong with the 'if' instead of in the 'else' ?

-- Jim

reply via email to

[Prev in Thread] Current Thread [Next in Thread]