Category Archives: Linux

This category describes Linux related question and it is designed to be used by Suse and Ubuntu users

Make incremental backups with tar

Sometime, you modify a small file and you don’t need a full backup. It is recommended to make a full back-up every week and make everyday an incremental back-up. You can use tar to make incremental back-up. In the next example we will backup all files from /home/adrian that are modified in the last 2… Read More »

Bash current folder

Sometimes, if you run some bash scripts from cronjob or with the absolute path you will receive an error like this: Can’t open perl script “backup.cgi”. No such file or directory. To solve this, you must make sure you set bash to read from the directory where it is located: cd $(dirname $0) This will… Read More »

Simple backup in Linux

Sometimes, when you writing code you make a lot of mistakes and you want to go back to a previous version, but you don’t have one. It’s recommended that you always back-up your data. I tried a lot of back-up solutions, but they didn’t satisfy what I need. I need to make a backup to… Read More »

Read command line parameters with Perl and Bash

Today I was try to pass some paramters to my CGI script directly from command line. I have a bash file which execute some perl commands and I need it to be configurable. Bellow are two examples of how to read command line parameters, first is with Bash and second one is with Perl: 1.… Read More »