Suse & OpenSuse : Tips, Tricks, Tutorials, How Tos and Troubleshooting

Differential backup script sample

We should regularly backup our servers (and PCs and notebooks) and if you are running a production server, backing up as regularly as possible should be considered.  However, backing corporate servers which are full of emails or shared documents can take hours.  We can probably only do so on the weekends.  So, what happens when we need to restore some data at the end of the work week?  Does it mean that we will loose all our data that we created or modified earlier on in the week, since we only have last week’s backup?
Read the rest of this page »

Automatically dating your tar backups

Normally, we use the tar command coupled with some compression program such as gzip to create a backup of our directories. I.e.

# tar -cf /var/log/backup/tux.tar /home/tux

to backup the home directory of the user tux into the directory  /var/log/backup.

Read the rest of this page »

Short and quick tutorial for the command “touch”

The touch command is typically used for 2 purposes, to create a new file and to modify the access and modification times of the file.  If the file already exist, it will update the  both the access and modification times of the file and if it does not exist, it will create a new file.  The latter is probably the most common usage of the command.

touch

Read the rest of this page »

Using command output with backquotes

The backquote (`), which is quite alien to most Windows users, is the key just below the top left hand side ESC key on your keyboard.  This is a useful key to use when you want to use the standard output of a UNIX/LINUX command as part of another command.

DSC00380-1

Read the rest of this page »

How to create shortcuts on Gnome desktop

Shortcuts on Linux is known as soft links and traditionally, this can be achieved by using the “ln –s” command and option.  You can also achieve this on the Gnome desktop using the mouse only.  However, unlike the Windows way to create a shortcut where you right click on the folder/file and near the bottom of the list there is the option to “Create Shortcut”.

windows-part

Read the rest of this page »