[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] A problem (again) with backing up on Mac
From: |
Busser, Jim |
Subject: |
[Gnumed-devel] A problem (again) with backing up on Mac |
Date: |
Wed, 29 Jan 2014 23:18:00 +0000 |
I think I am again running into problems with permissions on Mac, in spite of
having believed I had previously made adequate notes.
I had not so far done a backup under database v19, having left my .conf
configured to v18 however I had backed up as recently as Nov 16 (I know …
though I had done multiple drive imagings).
Anyhow, I could not again achieve to backup v18 in spite of trying to run the
script in
/etc
by any of the following methods ...
as regular system user (djb)
as sudo
by use of su -i (opening a shell command to run as root)
with the target directory being
/Users/djb/.gnumed/backup/
and the config already adjusted as previously learned, as better worked on Mac:
# user/group the backup is eventually owned by
# BACKUP_OWNER="$USER:$USER"
BACKUP_OWNER="djb:djb"
and with the permissions in
/etc/gnumed
being
macbook:gnumed root# ls -al
total 72
drwxr-xr-x 8 root wheel 272 9 Aug 23:03 .
drwxr-xr-x 118 root wheel 4012 27 Jan 22:15 ..
-rwxr-xr-x@ 1 root wheel 6838 21 Oct 2011 gm-backup_database.sh
-rw-r--r--@ 1 root wheel 5099 29 Jan 14:27 gnumed-backup.conf
-rw-r--r-- 1 djb djb 5075 20 Oct 2011
gnumed-backup.conf.example
-rw-r--r--@ 1 root wheel 1552 23 Oct 2011 gnumed-restore.conf
-rw-r--r--@ 1 djb djb 1517 20 Oct 2011
gnumed-restore.conf.example
-rw-r--r-- 1 root wheel 46 9 Aug 23:03 mybackup
The terminal output from my various tries is given below, between each of the
pairs of =====.
At bottom is the listing of the files previously succeeded, and today failed,
to be written not only by root but also by user db!
Not sure what I am missing!
-- Jim
===============================================
macbook:gnumed djb$ sh gm-backup_database.sh
Password:
Backing up database gnumed_v18.
However, a newer database seems to exist:
Password:
gnumed_v18 | gm-dbo | UTF8 | en_CA | en_CA |
gnumed_v19 | gm-dbo | UTF8 | en_CA | en_CA |
Make sure you really want to backup the older database !
tar:
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-54-27-database.sql:
Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
Creating backup tar archive
[backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-54-27.tar] failed.
Aborting.
===============================================
macbook:gnumed djb$ sudo sh gm-backup_database.sh
Password:
Backing up database gnumed_v18.
However, a newer database seems to exist:
Password:
gnumed_v18 | gm-dbo | UTF8 | en_CA | en_CA |
gnumed_v19 | gm-dbo | UTF8 | en_CA | en_CA |
Make sure you really want to backup the older database !
tar:
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-56-38-database.sql:
Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
Creating backup tar archive
[backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-56-38.tar] failed.
Aborting.
macbook:gnumed djb$
===============================================
macbook:gnumed djb$ sudo -i
macbook:~ root#
macbook:~ root# export
PATH=/opt/subversion/bin:/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
macbook:~ root# cd /etc/gnumed
macbook:gnumed root# sh gm-backup_database.sh
Password:
Backing up database gnumed_v18.
However, a newer database seems to exist:
Password:
gnumed_v18 | gm-dbo | UTF8 | en_CA | en_CA |
gnumed_v19 | gm-dbo | UTF8 | en_CA | en_CA |
Make sure you really want to backup the older database !
tar:
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-55-25-database.sql:
Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
Creating backup tar archive
[backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-55-25.tar] failed.
Aborting.
macbook:gnumed root#
===============================================
\macbook:gnumed djb$ ls -al /Users/djb/.gnumed/backup/
total 5570840
drwxr-xr-x 37 djb djb 1258 29 Jan 14:56 .
drwxr-xr-x 14 djb djb 476 22 Nov 23:25 ..
-rw-r--r--@ 1 djb djb 6148 16 Nov 15:22 .DS_Store
-rw-r--r-- 1 djb djb 119842816 7 Nov 2011
backup-gnumed_v16-GNUmed_Team-MacBook-2.local-2011-11-07-09-27-43.tar
-rw-r--r-- 1 djb djb 150366208 31 Mar 2012
backup-gnumed_v16-GNUmed_Team-MacBook-2.local-2012-03-31-12-34-48.tar
-rw-r--r-- 1 djb djb 158225408 18 Jun 2012
backup-gnumed_v17-GNUmed_Team-MacBook-2.local-2012-06-18-23-10-16.tar
-rw-r--r-- 1 djb djb 166609920 6 Sep 2012
backup-gnumed_v17-GNUmed_Team-MacBook-2.local-2012-09-06-08-42-43.tar
-rw-r--r-- 1 root djb 48934453 13 May 2013
backup-gnumed_v18-GNUmed_Team-MacBook-2.local-2013-05-13-15-37-35.bz2
-rw-r--r-- 1 djb djb 252563968 17 Jul 2013
backup-gnumed_v18-GNUmed_Team-MacBook-2.local-2013-07-17-13-48-15.tar
-rw-r--r-- 1 djb djb 73754853 29 Jul 2013
backup-gnumed_v18-GNUmed_Team-MacBook-2.local-2013-07-29-22-53-37.zip
-rw-r--r-- 1 djb djb 255356928 3 Aug 10:39
backup-gnumed_v18-GNUmed_Team-MacBook-2.local-2013-08-03-10-38-25.tar
-rw-r--r-- 1 djb djb 268750848 9 Aug 23:01
backup-gnumed_v18-GNUmed_Team-MacBook-2.local-2013-08-09-23-01-05.tar
-rw-r--r-- 1 root djb 56119336 9 Aug 23:05
backup-gnumed_v18-GNUmed_Team-MacBook-2.local-2013-08-09-23-01-05.tar.bz2
-rw-r--r-- 1 djb djb 283456000 16 Nov 15:21
backup-gnumed_v18-GNUmed_Team-MacBook-2.local-2013-11-16-15-19-53.tar
-rw-r--r-- 1 djb djb 252558848 15 Jul 2013
backup-gnumed_v18-GNUmed_Team-host132-75.wifi.ubc.ca-2013-07-15-13-55-47.tar
-rw-r--r-- 1 djb djb 252558848 15 Jul 2013
backup-gnumed_v18-GNUmed_Team-host132-75.wifi.ubc.ca-2013-07-15-13-57-23.tar
-rw-r--r-- 1 root djb 401 29 Jan 14:27
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-27-02-roles.sql
-rw-r--r-- 1 root djb 2048 29 Jan 14:27
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-27-02.tar
-rw-r--r-- 1 root djb 530 29 Jan 14:43
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-43-31-roles.sql
-rw-r--r-- 1 root djb 2560 29 Jan 14:43
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-43-31.tar
-rw-r--r-- 1 djb djb 530 29 Jan 14:53
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-53-19-roles.sql
-rw-r--r-- 1 djb djb 2560 29 Jan 14:53
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-53-19.tar
-rw-r--r-- 1 root djb 530 29 Jan 14:53
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-53-51-roles.sql
-rw-r--r-- 1 root djb 2560 29 Jan 14:53
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-53-51.tar
-rw-r--r-- 1 djb djb 530 29 Jan 14:54
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-54-27-roles.sql
-rw-r--r-- 1 djb djb 2560 29 Jan 14:54
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-54-27.tar
-rw-r--r-- 1 root djb 530 29 Jan 14:55
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-55-25-roles.sql
-rw-r--r-- 1 root djb 2560 29 Jan 14:55
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-55-25.tar
-rw-r--r-- 1 root djb 530 29 Jan 14:56
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-56-38-roles.sql
-rw-r--r-- 1 root djb 2560 29 Jan 14:56
backup-gnumed_v18-GNUmed_Team-macbook.vch.ca-2014-01-29-14-56-38.tar
-rw-r--r-- 1 root djb 530 29 Jan 14:24
backup-gnumed_v19-GNUmed_Team-macbook.vch.ca-2014-01-29-14-24-26-roles.sql
-rw-r--r-- 1 root djb 2560 29 Jan 14:24
backup-gnumed_v19-GNUmed_Team-macbook.vch.ca-2014-01-29-14-24-26.tar
-rw-r--r-- 1 root djb 530 29 Jan 14:27
backup-gnumed_v19-GNUmed_Team-macbook.vch.ca-2014-01-29-14-27-23-roles.sql
-rw-r--r-- 1 root djb 2560 29 Jan 14:27
backup-gnumed_v19-GNUmed_Team-macbook.vch.ca-2014-01-29-14-27-23.tar
-rw-r--r-- 1 root djb 530 29 Jan 14:36
backup-gnumed_v19-GNUmed_Team-macbook.vch.ca-2014-01-29-14-36-46-roles.sql
-rw-r--r-- 1 root djb 2560 29 Jan 14:36
backup-gnumed_v19-GNUmed_Team-macbook.vch.ca-2014-01-29-14-36-46.tar
-rw-r--r--@ 1 djb djb 513056256 9 Aug 23:21 gnumedBU.dmg
macbook:gnumed djb$
\
signature.asc
Description: Message signed with OpenPGP using GPGMail
- [Gnumed-devel] A problem (again) with backing up on Mac,
Busser, Jim <=