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.
- 1Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 3Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 4Linux Top 3: CoreOS, Oracle Enterprise Linux 7 and Ubuntu 14.10
- 5Linux Top 3: Linux from Scratch, Ubuntu 14.01 Beta and Arch Updates