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.
Sponsored by BlackBerry
BlackBerry® Enterprise Server Express enables businesses of any size to quickly and easily get started with the BlackBerry solution. It provides advanced BlackBerry smartphone features with no additional software or user license fees, and works with any Internet-enabled BlackBerry data plan or a BlackBerry enterprise data plan. Download now!