Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Reviews







Linux Backups For Real People, Part 3
Simple Network Backups

Carla Schroder
Thursday, November 15, 2007 10:00:35 AM

In part 1 of this series we learned how to format USB storage devices for maximum portability, and how to configure udev so they would always have the same names when you plug them in, and in part 2 we learned a simple, efficient way to use the excellent rsync command for easy single-user backups.

Today we're going to create menu icons for launching our backups whenever we darned well feel like it, set up a simple network backup scheme, and create automatic scheduled backups.

First we'll take our rsync incantation from last week and enshrine it in a shell script, and give it an imaginative name like, oh, what about backupscript:

#!/bin/sh
##################################
# simple rsync script for making backups
# to a USB storage device, formatted in
# FAT16/32
##################################
# this must be one long unbroken line
rsync -rlvt --modify-window=1 --include-from=/home/carla/rsync-includes \
/home/carla/* /media/BACKUP1

If you are having trouble using include and exclude files, there is a simpler way: just list all the files and directories you want to backup like this:

rsync -rlvt --modify-window=1 \
/home/carla/thisdirectory \
/home/carla/thatdirectory \
/home/carla/filename \
/media/BACKUP1

You don't have to list them one per line; that's just how I like to do it. The backslashes tell Bash that you are spreading the command out over several lines. If you put it all on one line, be sure it's one long unbroken line.

Make your script executable:

$ chmod +x backupscript

Next: Making Menu Icons »

Skip Ahead

1 Simple Network Backups
2 Making Menu Icons
3 Automated and Network Backups
4 Troubleshooting and References





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers