LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Backups (https://www.linuxquestions.org/questions/linux-newbie-8/backups-743213/)

krishnaix 07-27-2009 05:02 PM

Backups
 
Hi All,

I am New to linux operating system.I am facing troubles while doing backups.
What is the basic difference between Incremental and Differential Backups.
Do they require special software to perform.

Thanks a Bunch.

Suncoast 07-27-2009 06:21 PM

Incremental and Differential will only backup files that have been modified and have the "a" archive file attribute on.

Differential will not clear the "a" attribute, incremental will.

You should only use these types of backups when you know you have at least one good FULL backup already.

The differential and incremental backups are intended to save time and resources doing daily backups, while the full backups are typically done when there is more time and system resources, like on Sunday for businesses.

All backup software I'm aware of will do these, even tar.

choogendyk 07-27-2009 07:40 PM

First off, the archive bit is typical of Windows and the NTFS file system -- http://en.wikipedia.org/wiki/Archive_bit. In many file systems, it doesn't exist; and, it has been severely deprecated, because it is not under the control of a particular backup system and can be changed in ways that mess up backups when more than one tool is used, or when a user starts messing with it. See W. Curtis Preston's article "The Windows archive bit is evil and must be stopped."

Different backup programs have their own means of tracking what needs to be backed up. Dump, such as ufsdump, tracks when filesystems were last backed up in /etc/dumpdates. Whether something gets backed up in an incremental is determined by whether it has changed since the last backup. For a fairly good description of incremental and differential backups, see How are Backup Levels Defined?. (I confess to having written the first section of that page and having edited the rest).

There are a huge variety of strategies for doing backups. A common approach is a full backup on weekends, and incrementals on week nights. Another is a full backup at the beginning of a month, a differential every weekend, and an incremental every week night. How long backups are kept also varies a lot. Since I use Amanda, my full and incremental backups are distributed across the dump cycle to even the load (see the description in the link above). I have a dump cycle of 1 week. I run backups every night, and I have a tape cycle of 6 weeks, with some extras on top of that. I also keep periodic archives.

Suncoast 07-28-2009 08:53 AM

Uh-oh! I've been busted again for my Windows-centric background.

To the Original Poster Krishnaix:
Full backup = Full Backup
Differential = Backup everything since the last FULL backup
Incremental = Backup everything since the most recent (full or incremental) backup.

When not using the archive bit, the most basic way to do differential or incremental backups is by tracking and using the previous backup date.

You did not say what kind of problems you are having, or which backup program you are using. If you let us know, we'll try to help you out.


To choogendyk: When someone starts with "I am new to Linux," I try to keep it basic. I do agree with everything you said. And thank you for pointing out I was drifting back to Redmond world.:redface:

krishnaix 07-28-2009 10:12 PM

Thankyou very much guy's. Appreciated, it is more helpful.


All times are GMT -5. The time now is 06:00 PM.