backup

Use sed to modify files in place

sed command FAQ: How can I use the Unix/Linux sed command to edit (modify) files in place?

The short answer is that you just need to use the -i or --in-place sed arguments, as shown in the sed man page:

-i[SUFFIX], --in-place[=SUFFIX]

edit files in place (makes backup if extension supplied)

Then, if you have a file named 'hello.txt' with contents like this:

jello, world
this is a test

you can then run a sed command like this to modify that file:

Mac Stickies backups - the Stickies database file location

Mac Stickies backup FAQ: I want to make sure my Mac Stickies are backed up; where are the Mac Stickies files (or database) located?

As I wrote about in an earlier article on How to save Mac Stickies, Mac Stickies (sticky notes) are saved in one database file. This file is named StickiesDatabase, and it's located in the Library folder of your home directory.

As an example, my home directory is named /Users/Al, and my Mac Stickies database file is located in this directory:

How to make Mac backups with burn folders

Mac backups and burn folders FAQ: How do I make Mac backups (CD/DVD backups) with Mac burn folders?

Wow, I've become a big fan of Mac OS X burn folders lately. Once I realized how much they simplify the process of making Mac backups I've been completely sold on them. Mac burn folders make the Mac backup process so easy I actually take the time to make them on a regular basis.

Mac backup options - An overview

Mac backup options FAQ: How can I backup my Mac (iMac, MacBook, MacBook Pro)? What are my options?

There are several different ways to create Mac backups. We can break all these approaches down into two main approaches:

How to make Mac backups with burn folders (Part 4)

Mac CD/DVD backups - After the burn

When I came back from lunch I was very surprised that there was no "Success" dialog to show me that the Mac burn folder/backup process succeeded. However, I was returned to my original Mac burn folder, and there is a new disk icon named "My Data Files" on my desktop, as shown here:

How to make Mac backups with burn folders (Part 3)

Mac backups - Burning to CD or DVD

Now that I've told my Mac burn folder what files and folders I won't to burn to disk, the next step is to tell the burn folder to burn this data to my DVD. To do this I just click the Burn button on the Mac burn folder, and then my Mac prompts me to insert a disk, as shown in this figure:

iPad backup and restore tutorial

iPad backup/restore FAQ: How do I make an iPad backup? Also, how do I restore an iPad backup?

When it comes to making backups, the iPad is a curious device. The iPad isn't like a traditional computer where you say, "I want to backup folders X, Y, and Z." Curious about Apple's thinking, I've dug into the iPad backup and restore topic, and here's what I've found.

vim backup files - how to move

vim FAQ: How do I move vim backup files to another directory? (Those files that end with the "~" character.)

To move vim backup files to another directory, just use commands like these in your "vimrc" configuration file:

SQLite backup: How to dump a SQLite database

SQLite dump/backup FAQ: How do I backup (dump) a SQLite database (or database table)?

"How to make a backup of a SQLite database?" is a really interesting question. Because a SQLite database is really just a file, if you truly want to make a backup of that database, it can be as simple as copying that file to a backup location.

But there is more to the story ...