- One way to help back up personalized system files
-
It seems like every time I backup my home folder and then do an erase and install, I forget a bunch of system files: my hosts file, apache, mysql, and php config files. So I've come up with a handy solution. I've created a folder in my home folder, ~/.system. In that folder, I've created hard links to a bunch of system files: hosts -> /etc/hosts httpd.conf -> /etc/httpd/httpd.conf my.cnf -> /etc/my.conf sites.conf -> /etc/httt/sites.conf You create a hard link in Terminal using this syntax, assuming you're in the directory where you'd like the link to be created: $ cd ~/.system $ ln /etc/hosts . A hard link creates two directory entries pointing to the same file on the disk. Deleting one directory entry doesn't delete the file. Now when I back up my home folder, I also back up these personalized system files.
Thu, 29 Mar 2007 16:30:01 +0200 - more MacOSXHints.com articles
-
- related articles found at MacOSXHints.com
- 10.4: Back up important folders with one click Tue, 27 Feb 2007 16:30:02 +0100
- 10.5: One way to back up locally-synced .Mac iDisks Tue, 20 Nov 2007 23:30:00 +0100
- 10.5: One way to use Time Machine and a backup server Sun, 23 Dec 2007 19:30:03 +0100
- Another way to set up a 'unified' iPhone email inbox Mon, 25 Aug 2008 16:30:00 +0200
- Disable backups to speed iPhone/iPod touch syncing Thu, 31 Jul 2008 16:30:02 +0200
- Easily sync iPhone without backing up first Wed, 06 Aug 2008 16:30:00 +0200
- One way to 'link' to files, folders, etc. in iWork documents Thu, 17 Apr 2008 16:30:02 +0200