Skip to main content

A utility that extends and simplifies using dar (Disk ARchive) for doing routine incremental backups.

Project description

Darfortie is a front-end for the dar (Disk ARchive) utility (http://dar.linux.free.fr/). It adds functionality to the dar utility and makes it simpler to use for creating incremental backups. It is meant to facilitate a more convienent backup strategy, typically one run periodically by a cron task.

The utility can be run repeatedly with the same parameters, and each run will generate a new incremental archive based on the last one created. It will search the directory where the current archive is being created for past reference archives, or a directory can be specified to search in (-I).

The first backup is created without the incremental option (-i).

Further incremental backups are created using the -i option and the same (base) name. Darfortie adds the date/time to the final name to make it unique. It relies on this naming convention to find the most recent reference backup it should use.


It is suggested that for the base name you adopt a convention such as:

machine_daily

where “machine” is the machine name being backed up, and “daily” is for daily incremental backups. The end result would result in names like:

machine_daily_20160228T0352UTC.1.dar
machine_daily_20160228T0403UTC_based_on_20160228T0352UTC.1.dar

A configuration file can be passed through to dar by using the -c switch. If not specified, dar will search for and use any dar configuration file it normally would (ie. /etc/darrc, ~/.darrc). See the dar man page for details on its structure (“CONDITIONAL SYNTAX”).

It also allows you to pass thru dar prune paths.


Install darfortie by running:

  1. Installing Python (either v2 or v3) if not already installed.

  2. Download a configuration file to use with the -c option at https://github.com/kagalle/darfortie/blob/master/darfortie.conf.

  3. Run pip install -i https://pypi.python.org/pypi darfortie

If this is done as a normal user, then the install puts the package in

/home/ken/.local/lib/python2.7/site-packages/darfortie

and creates an execuatable such that the application can be run by:

$ ./local/bin/darfortie

If installed as root, then the install is done into

/usr/local/lib/python2.7/dist-packages/darfortie

and the executable is created as:

/usr/local/bin/darfortie

which is normally on the system PATH.


For a complete list of options, run:

python darfortie --help

This is BETA software. Use at your own risk. Please:

  1. Test for suitability before using for “real” data.

  2. During testing, use “dar -d …” to compare the created backup against the filesystem.

  3. For testing, do a complete restore to a separate filesystem and compare results.


There is an older bash-based version in the “bash_version” directory, kept ONLY for historical reasons.


There is currently no restore option - use the dar utility directly to do restores.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darfortie-1.0.2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

darfortie-1.0.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file darfortie-1.0.2.tar.gz.

File metadata

  • Download URL: darfortie-1.0.2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for darfortie-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1e269f01c191c240dc0e2573354beefbcbb651c5a963261cc6e593a218ff2021
MD5 f1b5faeb1ff03a325a75d6f202a928e8
BLAKE2b-256 d1f06c0b9986a079ee93d788031fedacb3073037de95f25c0030dab7e0329377

See more details on using hashes here.

File details

Details for the file darfortie-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: darfortie-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for darfortie-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c11de4d0c100ea4153df0b985940090016b7a3a83f409a2c46d1392ca0874ab3
MD5 2249cf16f83a53d1825c890508703c32
BLAKE2b-256 c25932e6fa18099ca8f47010c52e194f6e5c001bb7a057bb5a9df4a5f9a3e959

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page