
Sat Jun 19 14:09:37 MST 2004

backup as on apr 18 04
to LaCie-3
booted ok from LaCie-3
no other checks

lost scr-out?

following listings for main drive = I-/ (not for LaCie-3 copy)
[so if need to, can make cf with copy]

:r !ls -l /
total 12145
drwxrwxr-x  57 root  admin     1938 19 Jun 00:10 Applications
drwxrwxr-x  15 root  admin      510  9 Dec  2003 Applications (Mac OS 9)
-rw-r--r--   1 root  admin   211456  9 Jun 11:08 Desktop DB
-rw-r--r--   1 root  admin  1541922 26 Apr 13:09 Desktop DF
drwxrwxr-x   2 root  admin       68 25 Jul  2003 Desktop Folder
drwxrwxr-x  13 root  admin      442 23 Dec 00:24 Developer
drwxrwxr-x   5 root  admin      170 15 Nov  2003 Documents
drwxrwxrwx   6 jar   staff      204 12 Dec  2003 Install_Resources
drwxrwxr-x  43 root  admin     1462 14 Jun 16:39 Library
drwxr-xr-x   1 root  wheel      512 19 Jun 14:12 Network
drwxr-xr-x   4 root  wheel      136  2 Jun 12:19 System
drwxrwxr-x  36 root  admin     1224 17 Apr 23:44 System Folder
drwxrwxrwt   3 jar   admin      102  1 Nov  2003 Temporary Items
drwxr-xr-x   2 jar   admin       68  1 Nov  2003 TheVolumeSettingsFolder
drwxrwxr-t   8 root  admin      272 26 Dec 03:25 Users
drwxrwxrwt   3 root  admin      102 19 Jun 13:55 Volumes
drwxr-xr-x   4 root  admin      136 24 Nov  2003 automount
drwxr-xr-x  36 root  wheel     1224  1 Jun 21:54 bin
drwxr-xr-x  12 jar   admin      408 19 Jun 14:11 clone-info
drwxrwxr-t   2 root  admin       68 12 Sep  2003 cores
dr-xr-xr-x   2 root  wheel      512 19 Jun 13:52 dev
lrwxr-xr-x   1 root  admin       12  5 Jan 19:11 etc -> /private/etc
lrwxr-xr-x   1 root  admin        9 19 Jun 13:53 mach -> /mach.sym
-r--r--r--   1 root  admin   569532 19 Jun 13:53 mach.sym
-rw-r--r--   1 root  wheel  3858620 12 May 16:58 mach_kernel
lrwxr-xr-x   1 root  admin       22 19 Jun 13:53 mntA -> /automount/static/mntA
lrwxr-xr-x   1 root  admin       25 19 Jun 13:53 mntroot -> /automount/static/mntroot
drwxr-xr-x   3 root  admin      102 10 Jan 22:03 opt
drwxr-xr-x   7 root  wheel      238 19 Jun 13:52 private
drwxr-xr-x  61 root  wheel     2074  7 Jun 14:15 sbin
drwxr-xr-x   3 root  admin      102 11 Apr 13:25 store-no_backup
drwxr-xr-x  11 root  admin      374 26 Nov  2003 sw
lrwxr-xr-x   1 root  admin       11 24 Nov  2003 tmp -> private/tmp
drwxr-xr-x  12 root  wheel      408 12 Sep  2003 usr
lrwxr-xr-x   1 root  admin       11 24 Nov  2003 var -> private/var

:r !df -k
Filesystem              1K-blocks     Used    Avail Capacity  Mounted on
/dev/disk0s9             58598824 19302612 39040212    33%    /
devfs                          93       93        0   100%    /dev
fdesc                           1        1        0   100%    /dev
<volfs>                       512      512        0   100%    /.vol
automount -nsl [379]            0        0        0   100%    /Network
automount -fstab [383]          0        0        0   100%    /automount/Servers
automount -static [383]         0        0        0   100%    /automount/static

:r !sudo du -xsk /*
du: /dev/fd/3: Bad file descriptor
4716816	/Applications
175092	/Applications (Mac OS 9)
208	/Desktop DB
1508	/Desktop DF
0	/Desktop Folder
908104	/Developer
47824	/Documents
24	/Install_Resources
1834968	/Library
3	/Network
1385308	/System
166956	/System Folder
0	/Temporary Items
0	/TheVolumeSettingsFolder
4496864	/Users
4	/Volumes
1	/automount
3464	/bin
272368	/clone-info
0	/cores
0	/dev
4	/etc
4	/mach
560	/mach.sym
3772	/mach_kernel
4	/mntA
4	/mntroot
393488	/opt
166464	/private
2120	/sbin
3107216	/store-no_backup
360860	/sw
4	/tmp
1048168	/usr
4	/var

----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------


Sun Apr 18 11:53:49 MST 2004

IMPORTANT:
click on drive to which will backup
goto Finder->file->get into
	unset if necessary: ignore ownership on this volume
	NB - if this is not done, owner-group is, e.g., jar-unknown

NB: /Users has files with resource forks - therefore copied with ditto
NB: should check again for files with resource forks, in hierarchies that
previously did not have them
	done - see end of this file

before backup:
	shut off connection  to world (wireless/ethernet)
	restart
	login as root
	modify clone-info/mkbackup
		recipient drive -> LaCie-2 (or whatever appropriate)
	do above unset of ignore ownership
backup:
	cd /
	/clone-info/mkbackup >&scr-out
		both std-err and std-out are written to scr-out
	followed process in 2nd shell window, using tail -f, etc.
analsysis:
	in pref, select LaCie-2 as boot drive
	restart
	systems boots with logins, menu bar, app bar intact
	in pref, reset boot to mac drive 1
	restart

	compare listings: NB: all looks ok, or at least pretty good
		du -xsk when in / and /V*/L*-2/
		ls -l   when in / and /V*/L*-2/
df -k
/dev/disk0s9             58598824 18515936 39826888    32%    /
/dev/disk1s3             19406616 13178952  6227664    68%    /Volumes/LaCie-1
/dev/disk1s5             19406616 15436744  3969872    80%    /Volumes/LaCie-2
	NB: 3MB in /store---- not copied, by intent

	casual examination of scr-out showed nothing surprising
	too long a file for visual exam.

----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------

excerpts from:  CLONE done on 040227

----------------------------------------------------------------------

Fri Feb 27 17:13:45 MST 2004

solution-2: clone-040227
	* mix of
		rsync - for root level dirs with:
			no resource forks;
			subdirs that should not be dropped into:
				exclude with patterns
			stubs for /etc, /automount copied with same
				ownerships, permissions
		ditto - for root level dirs with:
			resource forks;
			no network stuff == automount 
		bless after transfer		

	clone on 18.5 gig partition of 60 gig drive
	to which 13 gig pbg4 root dir copied as above

	appeared to be ~ exact clone:
		nearly exact replica of du -xsk * output
		booted from firewire with clone - ok for:
			network stuff = mail, rlogin, automount
			same accounts/passwds
			not tested beyond this

	*except* for owner-group and perms of root-level symlinks and mach.sym:
		different o-g and perms: /etc, /tmp, /var
		different g: /mach.sym
		different o-g: /mach
		absent after boot/test/eject of clone drive: /mntA, /mntroot
			[present after copy]

	2nd trial of clone:
		automount recreated /mntA, /mntroot, but with similarly odd
		o-g+perms;
		system worked fine on network from cloned drive; all ok...

----------------------------------------------------------------------


OLD MACOS RESOURCE FORKS: checked for what root level dirs/files have them?
done before above copy (solution-2):

find -x $i -type d -exec lsmac -ap {} \; | grep "^[^ ][^ ][^ ][^ ][^ ][^ ][ ][ ]*[A-Za-z][A-Za-z]*[ ][A-Za-z]"

	no resource forks for: [nb: no longer correct for /Users, ....???]
	/sw, /opt, /sbin, /bin, /dev, /automount, 
	/private, /usr, /Users
	/cores, /.vol, /.Trashes
	/Documents, /Desktop Folder, /Install_Resources, /Networks, 
	/Temporary Items, /TheVolumeSettingsFolder, /Volumes, 
	files: /clone*, /mach[._]*, /.??*, 
	symlinks: /mntA, /mntroot, /mach, /etc, /tmp, /var, 

	resource fork(s) found in (or associated with, if file):
	/Applications, /Applications (Mac OS 9), /Developer, 
	/Library, /System, /System Folder, 
	files: /Macintosh HD, /Desktop D[BF],

----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------

IN CLONING on 040418:

used ditto for:

"/Applications" 
"/Applications (Mac OS 9)" 
"/Desktop DB" 
"/Desktop DF"
"/Desktop Folder"
"/Developer"
"/Documents"
"/Install_Resources" 
"/Library"
"/System"
"/System Folder"
"/Users"

----------------------------------------

used rsync for:

/bin
/private 
/sbin
/usr 

/opt 
/sw

/mach_kernel
/mach
/mach.sym 

/dev
/cores

/.vol 
/Volumes      

/Network
/automount
/mntA
/mntroot

/tmp
/var 
/etc

/.hidden
/.hidden.mod1
/.hidden.orig 
/.hotfiles.btree

/clone-info 

----------------------------------------------------------------------

comparison  of du -xsk * for / and V*/L*-2/

system files/dirs - worth checking differences
a 1365492	System
b 1369688	System
a 3946716	Users
b 3901148	Users
a 121628	private
b 122156	private
a 1047956	usr
b 1047964	usr

system files/dirs - differences not surprising
a 208	Desktop DB
b 212	Desktop DB
a 0	dev
b 12	dev

no difference in file or cumulative hierarchy size:
a 4675180	Applications
b 4675180	Applications
a 175092	Applications (Mac OS 9)
b 175092	Applications (Mac OS 9)
a 1508	Desktop DF
b 1508	Desktop DF
a 0	Desktop Folder
b 0	Desktop Folder
a 908104	Developer
b 908104	Developer
a 47824	Documents
b 47824	Documents
a 24	Install_Resources
b 24	Install_Resources
a 1824744	Library
b 1824724	Library
a 166932	System Folder
b 166932	System Folder
a 4	Volumes
b 4	Volumes
a 3464	bin
b 3464	bin
a 0	cores
b 0	cores
a 4	etc
b 4	etc
a 4	mach
b 4	mach
a 556	mach.sym
b 556	mach.sym
a 3744	mach_kernel
b 3744	mach_kernel
a 393488	opt
b 393488	opt
a 1968	sbin
b 1968	sbin
a 360860	sw
b 360860	sw
a 4	tmp
b 4	tmp
a 4	var
b 4	var

not copied:
a 0	Temporary Items
a 0	TheVolumeSettingsFolder

part of backup process and analysis:
a 2977844	store-no_backup
a 231592	clone-info
b 231568	clone-info
a 50264	scr-out
a 0	scra
b 0	scrb

network stuff, made or modified by system:
a 3	Network
b 0	Network
a 1	automount
b 0	automount
a 4	mntA
a 4	mntroot

----------------------------------------------------------------------

comparison of listings ls -l for / and /V*/L*-2/

no differences in listing, except timestamp:
1 drwxrwxr-x 57 root admin 1938 11 Apr 15:48 Applications
2 drwxrwxr-x 57 root admin 1938 11 Apr 15:48 Applications
1 drwxrwxr-x 15 root admin 510 9 Dec 14:39 Applications (Mac OS 9)
2 drwxrwxr-x 15 root admin 510 9 Dec 14:39 Applications (Mac OS 9)
1 -rw-r--r-- 1 root admin 1541922 18 Apr 01:58 Desktop DF
2 -rw-r--r-- 1 root admin 1541922 12 Apr 14:48 Desktop DF
1 drwxrwxr-x 2 root admin 68 25 Jul 2003 Desktop Folder
2 drwxrwxr-x 2 root admin 68 25 Jul 2003 Desktop Folder
1 drwxrwxr-x 13 root admin 442 23 Dec 00:24 Developer
2 drwxrwxr-x 13 root admin 442 23 Dec 00:24 Developer
1 drwxrwxr-x 5 root admin 170 15 Nov 18:32 Documents
2 drwxrwxr-x 5 root admin 170 15 Nov 18:32 Documents
1 drwxrwxrwx 6 jar staff 204 12 Dec 20:49 Install_Resources
2 drwxrwxrwx 6 jar staff 204 12 Dec 20:49 Install_Resources
1 drwxrwxr-x 43 root admin 1462 31 Mar 23:40 Library
2 drwxrwxr-x 43 root admin 1462 31 Mar 23:40 Library
1 drwxr-xr-x 4 root wheel 136 26 Mar 17:03 System
2 drwxr-xr-x 4 root wheel 136 26 Mar 17:03 System
1 drwxrwxr-x 36 root admin 1224 17 Apr 23:44 System Folder
2 drwxrwxr-x 36 root admin 1224 17 Apr 23:44 System Folder
1 drwxrwxr-t 8 root admin 272 26 Dec 03:25 Users
2 drwxrwxr-t 8 root admin 272 26 Dec 03:25 Users
1 drwxr-xr-x 4 root admin 136 24 Nov 02:17 automount
2 drwxr-xr-x 4 root admin 136 24 Nov 02:17 automount
1 drwxr-xr-x 36 root wheel 1224 29 Mar 11:14 bin
2 drwxr-xr-x 36 root wheel 1224 29 Mar 11:14 bin
1 drwxrwxr-t 2 root admin 68 12 Sep 2003 cores
2 drwxrwxr-t 2 root admin 68 12 Sep 2003 cores
1 -rw-r--r-- 1 root wheel 3832636 5 Mar 15:23 mach_kernel
2 -rw-r--r-- 1 root wheel 3832636 5 Mar 15:23 mach_kernel
1 drwxr-xr-x 3 root admin 102 10 Jan 22:03 opt
2 drwxr-xr-x 3 root admin 102 10 Jan 22:03 opt
1 drwxr-xr-x 7 root wheel 238 18 Apr 01:56 private
2 drwxr-xr-x 7 root wheel 238 18 Apr 02:20 private
1 drwxr-xr-x 61 root wheel 2074 6 Apr 22:46 sbin
2 drwxr-xr-x 61 root wheel 2074 6 Apr 22:46 sbin
1 drwxr-xr-x 11 root admin 374 26 Nov 01:31 sw
2 drwxr-xr-x 11 root admin 374 26 Nov 01:31 sw
1 drwxr-xr-x 12 root wheel 408 12 Sep 2003 usr
2 drwxr-xr-x 12 root wheel 408 12 Sep 2003 usr

difference trivial, in size dir/file
1 -rw-r--r-- 1 root admin 215040 18 Apr 02:19 Desktop DB
2 -rw-r--r-- 1 root admin 210944 17 Apr 23:46 Desktop DB
1 drwxrwxrwt 8 root admin 272 18 Apr 02:07 Volumes
2 drwxrwxrwt 7 root admin 238 18 Apr 11:52 Volumes
1 drwxr-xr-x 12 jar admin 408 18 Apr 00:36 clone-info
2 drwxr-xr-x 13 jar admin 442 18 Apr 12:03 clone-info
1 dr-xr-xr-x 6 root wheel 204 18 Apr 00:54 dev
2 dr-xr-xr-x 2 root wheel 512 18 Apr 02:20 dev

files excluded from copy:
2 drwxrwxrwt 3 jar admin 102 1 Nov 22:09 Temporary Items
2 drwxr-xr-x 2 jar admin 68 1 Nov 22:09 TheVolumeSettingsFolder
2 -rw-r--r-- 1 root admin 51466582 18 Apr 01:52 scr-out
2 drwxr-xr-x 3 root admin 102 11 Apr 13:25 store-no_backup

networking dirs, established/modified by opsys:
1 drwxr-xr-x 6 root wheel 204 12 Sep 2003 Network
2 drwxr-xr-x 1 root wheel 512 18 Apr 12:03 Network
2 lrwxr-xr-x 1 root admin 22 18 Apr 02:25 mntA -> /automount/static/mntA
2 lrwxr-xr-x 1 root admin 25 18 Apr 02:25 mntroot -> /automount/static/mntroot

symlinks - diff owner/group:
1 lrwxrwxrwx 1 jar unknown 12 18 Apr 01:06 etc -> /private/etc
2 lrwxr-xr-x 1 root admin 12 5 Jan 19:11 etc -> /private/etc
1 lrwxr-xr-x 1 jar unknown 9 18 Apr 01:56 mach -> /mach.sym
2 lrwxr-xr-x 1 root admin 9 18 Apr 02:20 mach -> /mach.sym
1 -r--r--r-- 1 root unknown 568124 18 Apr 01:56 mach.sym
2 -r--r--r-- 1 root admin 568124 18 Apr 02:20 mach.sym
1 lrwxrwxrwx 1 jar unknown 11 18 Apr 01:09 tmp -> private/tmp
2 lrwxr-xr-x 1 root admin 11 24 Nov 01:06 tmp -> private/tmp
1 lrwxrwxrwx 1 jar unknown 11 18 Apr 01:15 var -> private/var
2 lrwxr-xr-x 1 root admin 11 24 Nov 01:07 var -> private/var

----------------------------------------------------------------------

:r !df -k
Filesystem              1K-blocks     Used    Avail Capacity  Mounted on
/dev/disk0s9             58598824 18515936 39826888    32%    /
devfs                          97       97        0   100%    /dev
fdesc                           1        1        0   100%    /dev
<volfs>                       512      512        0   100%    /.vol
automount -nsl [528]            0        0        0   100%    /Network
automount -fstab [531]          0        0        0   100%    /automount/Servers
automount -static [531]         0        0        0   100%    /automount/static
/dev/disk1s3             19406616 13178952  6227664    68%    /Volumes/LaCie-1
/dev/disk1s5             19406616 15436744  3969872    80%    /Volumes/LaCie-2
/dev/disk1s7             19406616    28272 19378344     0%    /Volumes/LaCie-3
/dev/disk1s9             19406568    28272 19378296     0%    /Volumes/LaCie-4

----------------------------------------------------------------------

check on files/directories copied by rsync, for presence of files/dirs with
resource forks
no resource forks found in following list

sudo -s

for i in `cat scraa`; do  echo "\n\nDirectory: $i\n"; find -x $i -type d -exec lsmac -ap {} \; | grep "^[^ ][^ ][^ ][^ ][^ ][^ ][ ][ ]*[A-Za-z][A-Za-z]*[ ][A-Za-z]"; done >scr-lsmac-1

Directory: .hidden
Directory: .hidden.mod1
Directory: .hidden.orig
Directory: .hotfiles.btree
Directory: .vol
Directory: bin
Directory: clone-info
Directory: cores
Directory: dev
Directory: mach.sym
Directory: mach_kernel
Directory: opt
Directory: private
Directory: sbin
Directory: sw
Directory: usr
