Linux Backups For Real People, Part 3 - page 2
Simple Network Backups
Gnome and KDE both have menu editors that we'll use to attach our backup script to nice menu icons. Here's how to do it in Gnome: find
menu layout in your system menu, or run the
alacarte command. Click on the menu you want to put it in, then click New Item. The Icon button takes you to vast herds of Gnome icons to choose from. Enter a name, like MyBackup or something. Then copy this line for the Command box exactly, except you'll substitute your own script name:
gnome-terminal -x /home/carla/backupscript
What if you need root permissions to run your backup script? Then do this:
gnome-terminal -x su - -c '/home/carla/backupscript' root
Figure 1 shows what it should look like. Do not check 'Run command in a terminal'.
gnome-terminal and go to the 'Edit-Current Profile'. On the 'Title and Command' tab select 'When command exits: Hold the terminal open.' If you don't do this, you won't see the output of your backup command because the terminal will disappear when it's finished. If you would rather not have this be the default behavior, use 'File-New Profile' to create a custom profile and give it a helpful name like
stayopen. Then use it this way:
gnome-terminal --window-with-profile=stayopen -x su - -c '/home/carla/backupscript' root
KDE users, open the menu editor, which is the
kmenuedit command. Or right-click on the application launcher. Select the menu you want it to be in and click the New Item button. Enter the full path to your scriptname, check the 'Run in Terminal' box, and add the
--noclose option. If you need root permissions check the 'Run as a different user' box, and enter 'root.' It should look like Figure 2.
Save your changes, and you're done. Click on your new backup button, and you'll see something like Figure 3.
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.