Simple Linux Backup Method

For a simple Linux backup solution, I often use rsync.

You need to identify the file systems that need to be backed up. From the command line:

df -h

As a side note you should create a separate file system for your applicaton. RHEL or Linux does not normally do this for you. The advantage to doing this is, it is much easier to upgrade the operating system when your application files are not stored on the root file system.

Back to the task at hand, let’s say you added an extra disk to your server and have it mounted at /backup. You can run rsync from the command line:

rsync -aPv --one-file-system / /backup/root/

The above command should backup your root file system to /backup/root/. I usually like to add dates to these backup directory so I can restore a file from a point in time. The -P rsync option gives you verbose progress information. This is great when you run it interactively.

You can automate this command by putting it into a shell script.

# create file: /etc/cron.daily/


/usr/bin/rsync -av --one-file-system / /backup/root/

You will need to set the execute bit on the newly created script

chmod +x /etc/cron.daily/

Once you have created /etc/cron.daily/ it should be run every day by the Linux cron.

3 Responses to “Simple Linux Backup Method”

  1. CORY Says:

    < blockquote > BUY CHEAP DRUGS : < b >-==== < a href=”” >Anti Convulsants Drugs < /a > ====-< /b >< /blockquote >…

    Purchase Quality Generic Drugs Now!…

  2. JEFFREY Says:

    < blockquote > GENERIC PHARMACY : < b >-==== < a href=”” >Anti Convulsants Cure < /a > ====-< /b >< /blockquote >…

    Buy Generic Drugs Now!…

  3. Bluestone Blog Says:

    Premium Proxies

    I found a great…

Leave a Reply