Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use Apple Backup to backup hidden files Apps
I use Apple Backup to backup my key files to a second hard drive. This works well except that when you select which files to backup you can't choose hidden or system files. As I use my Mac for web development utilising PHP and MySQL, I want to backup both my source code and my MySQL data. To add a hidden file to the backup list, try the following. In Terminal, type:
open /usr/local/mysql
This opens the MySQL folder; now select and drag and drop the data folder onto your open Backup window. Now you can backup up your MySQL data. You can use a similar trick for other hidden folders.
    •    
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[5,259 views]  

Use Apple Backup to backup hidden files | 5 comments | Create New Account
Click here to return to the 'Use Apple Backup to backup hidden files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Better (safer) way to back up MySQL databases...
Authored by: dnorman on Jan 12, '04 11:29:00AM
That's a bad way to backup a database - any open connections to the database and you're hooped. It's better to dump the data to a text file, and back that up.
% mysqldump -u username -p --quote-names -B databasename | gz > ~/backups/databasename.sql.gz
Chance username to your mysql user, and databasename (both places) to the name of the database you want to back up. Here, I assume you have a directory named "backups" in your home directory. Change that to anything you want. This will create a nicely gzipped archive of the sql dump, which can be easily backed up, ftp'ed, and of course restored. It's very straightforward to add this to a crontab to run at say 2am every day. That's what I have on all of my servers. And crontab items on other machines to grab the archive every morning at 3am...

[ Reply to This | # ]
Use Apple Backup to backup hidden files
Authored by: hangon on Jan 12, '04 12:02:37PM

Hmmm...i've tried that...but it only works for files you have the permission to....

And Some of the critical files of my system belong to root....and it seems that Backup is not cappable of asking u the root password when he needs it....


CAN'T UNDERSTAND WHY apple DOESNT MAKE BACKUP AS A GUI FOR rsync??????????


rsync is fast...reliable...and handle permissions...



[ Reply to This | # ]
Use Apple Backup to backup hidden files
Authored by: bbeachal on Jan 13, '04 12:12:05AM

open terminal and type "sudo open /Applications/Backup.app" hit return after you enter your password, Backup will run with root permissions



[ Reply to This | # ]
Command Shift G
Authored by: banderson623 on Jan 12, '04 12:47:40PM
I have never used Apple Backup Utility but it sounds you add files to be backed-up by an Open File Dialog, which allows you to enter any local path by pressing Command Shift G to opens a window allowing you to enter /my/hidden/directory/ or whatever you would like. Note: This is also works for finder windows and Save Dialogs.

[ Reply to This | # ]
Use Apple Backup to backup hidden files
Authored by: rhowell on Jan 12, '04 03:42:22PM

Apple's Backup2 only works if your home directory is on the same partition as the system's. For that reason alone I use SilverKeeper. Unsure about SilverKeeper's ability to handle hidden files, though.



[ Reply to This | # ]