
:max_bytes(150000):strip_icc()/dar-files-5a8592676edd6500361c8bfd.png)
# Do not do anything unless the specified directory is available # Henrik Ingo, henrik.ingo avoinelama.fi, Feb 2008īACKUPDIRFINAL="/media/$DISKSERVER/backup/$HOSTNAME"įILENAME="`hostname`-$TIMESTAMP-backup-full"
#DAR DISK ARCHIVE ARCHIVE#
# Create full DAR backup archive onto network drive (This was posted simply so I can copy paste the scripts from here as I need them.) $ cat fullbackup.sh It makes me feel good when I know that if needed, I could still easily burn my backups to CD's or DVD's. I still use them to make backups to a network disk. I've come to run the following scripts from my cron, on a monthly and daily basis. It first compresses each individual file, then combines them into one archive. It works kind of opposite to what tar|gzip does. If you are low on disk space you can save them one by one, and also when restoring you only need the slice(s) that contains your file(s). It creates an archive that is split into slices of the size you choose. It is surprising how little attention it has gotten, but I've been very happy to use DAR (Disk ARchiver) for these backup tasks.ĭAR is like TAR but of CD/DVD's. You could do hacks like using the split command line utility, but that seems both unreliable and is also inconvenient: To restore you would first need to append together all the pieces, and for a large backup that means you'd need a lot of empty space somewhere. What's more, with TAR you create the archive first, and then compress it, so it is not possible to know in the TAR phase when you've actually reached the size of your CD or DVD, and in the compression phase it is generally too late. The TAR utility was created for tapes and completely lacks any capability of splitting itself into parts. The challenge with backing up to a CD/DVD is that you easily have more data to back up than fits on one disc. But for many years I used to backup my personal Linux desktop by burning CD's and then DVD's.

Nowadays you can buy small network attached boxes to function as small home-office disk servers so cheaply, that most of the time I take backups by having a couple of those lying around the house. It includes testing, diffing, merging, listing, and extracting data from existing archives.Īrchive Internal's catalog allows rapid restoration of even a single file from a very large, eventually sliced, compressed, and encrypted archive.ĭAR saves *all* UNIX inode types, takes care of hard links, sparse files, as well as Extended Attributes (MacOS X file forks, Linux ACL, SELinux tags, user attributes), it has support for ssh and is suitable for tapes and disks (floppy, CD, DVD, hard disks.
#DAR DISK ARCHIVE HOW TO#
It also knows how to perform full, differential, incremental, and decremental backups. It uses selective compression (not compressing already compressed files), strong encryption, may split an archive into different files of a given size and provides on-the-fly hashing. DAR (Disk ARchive) is an Open Source 64-bit command-line utility aimed at backup and archiving large live filesystems.
