<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/">
  <channel>
    <title>Backup</title>
    <link>https://www.linuxjournal.com/</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>FOSS Project Spotlight: Bareos, a Cross-Network, Open-Source Backup Solution</title>
  <link>https://www.linuxjournal.com/content/foss-project-spotlight-bareos-cross-network-open-source-backup-solution</link>
  <description>  &lt;div data-history-node-id="1340600" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/heike-jurzik-and-maik-aussendorf" lang="" about="https://www.linuxjournal.com/users/heike-jurzik-and-maik-aussendorf" typeof="schema:Person" property="schema:name" datatype="" content="Heike Jurzik and Maik Aussendorf" xml:lang=""&gt;Heike Jurzik a…&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
&lt;a href="https://www.bareos.org"&gt;Bareos&lt;/a&gt; (Backup Archiving Recovery Open
Sourced) is a cross-network, open-source
backup solution that preserves, archives and recovers data from all major
operating systems. The Bareos project started 2010 as a Bacula fork and is now
being developed under the AGPLv3 license.
&lt;/p&gt;

&lt;p&gt;
The client/server-based backup solution is actually a set of computer programs
(Figure 1) that communicate over the network: the Bareos Director (BD), one or
more Storage Dæmons (SD) and the File Dæmons (FD). Due to this modular
design, Bareos is scalable—from single computer systems (where all
components run on one machine) to large infrastructures with hundreds of
computers (even in different geographies).
&lt;/p&gt;

&lt;img src="https://www.linuxjournal.com/sites/default/files/u%5Buid%5D/12764f1.png" width="1000" height="1124" alt="""" /&gt;&lt;p&gt;
&lt;em&gt;Figure 1. A Typical Bareos Setup: Director (with Database), File Dæmon(s),
Storage Dæmon(s) and Backup Media&lt;/em&gt;
&lt;/p&gt;

&lt;p&gt;
The director is the central control unit for all other dæmons. It manages the
database (catalog), the connected clients, the file sets (they define which
data Bareos should back up), the configuration of optional plugins, before and
after jobs (programs to be executed before or after a backup job), the storage
and media pool, schedules and the backup jobs. Bareos Director runs as a
dæmon.
&lt;/p&gt;

&lt;p&gt;
The catalog maintains a record of all backup jobs, saved files and volumes
used. Current Bareos versions support PostgreSQL, MySQL and SQLite, with
PostgreSQL being the preferred database back end.
&lt;/p&gt;

&lt;p&gt;
The File Dæmon (FD) must be installed on every client machine. It is
responsible for the backup as well as the restore process. The FD receives the
director's instructions, executes them and transmits the data to the Bareos
Storage Dæmon. Bareos offers pre-packed file dæmons for many popular
operating systems, such as Linux, FreeBSD, AIX, HP-UX, Solaris, Windows and macOS.
Like the director, the FD runs as a dæmon in the background.
&lt;/p&gt;

&lt;p&gt;
The Storage Dæmon (SD) receives data from one or more File Dæmons (at the
director's request). It stores the data (together with the file attributes) on
the configured backup medium. Bareos supports various types of backup media, as
shown in Figure 1, including disks, tape drives and even cloud storage
solutions. During the restore process, the SD is responsible for sending the
correct data back to the FD(s). The Storage Dæmon runs as a dæmon on the
machine handling the backup device(s).
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/foss-project-spotlight-bareos-cross-network-open-source-backup-solution" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Fri, 17 May 2019 12:00:00 +0000</pubDate>
    <dc:creator>Heike Jurzik and Maik Aussendorf</dc:creator>
    <guid isPermaLink="false">1340600 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Weekend Reading: Backups</title>
  <link>https://www.linuxjournal.com/content/weekend-reading-backups</link>
  <description>  &lt;div data-history-node-id="1339898" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/carlie-fairchild" lang="" about="https://www.linuxjournal.com/users/carlie-fairchild" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Carlie Fairchild&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;Public Service Announcement: please do a backup if you haven't in awhile. This weekend we feature articles varying from scary backup stories to how-to safeguard your data with encrypted backup solutions. &lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linuxjournal.com/article/6435"&gt;Scary Backup Stories&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;by Paul Barry&lt;/p&gt;

&lt;p&gt;Backups. We all know the importance of making a backup of our most important systems. Unfortunately, some of us also know that realizing the importance of performing backups often is a lesson learned the hard way. Everyone has their scary backup stories. Here are mine.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linuxjournal.com/article/6558"&gt;Reliable, Inexpensive RAID Backup&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;by Brian C. Lane&lt;/p&gt;

&lt;p&gt;As a topic, backups is one of those subject likely to elicit as many answers as people you ask about it. It is as personal a choice as your desktop configuration or your operating system. So in this article I am not even going to attempt to cover all the options. Instead I describe the methods I use for building a reliable, useful backup system. This solution is not the right answer for everyone, but it works well for my situation.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linuxjournal.com/article/7247"&gt;LVM and Removable IDE Drives Backup System&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;by Mike Fogarty&lt;/p&gt;

&lt;p&gt;When the company I work for, a civil engineering and surveying firm, decided to move all its AutoCad drawings onto a central fileserver, we were presented with a backup situation orders of magnitude larger than anything we had confronted before. We had at that time (now considerably larger) about 120,000 files, totaling 200GB, that were in active change and needed to be backed up at least daily.&lt;/p&gt;

&lt;p&gt;My first thoughts were of some sort of tape backup system, but as I began to research them, I was shocked at the prices I encountered. A tape autoloader large enough to contain our filesystem ran about $12,000 and a 40Gig tape was $89. When I first convinced my boss to let me run Linux on our servers, cheap was a big selling point. So, what are the alternatives?&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linuxjournal.com/video/backup-and-update-public-service-announcement"&gt;Backup and Update&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;by Shawn Powers&lt;/p&gt;

&lt;p&gt;In this video, editor Shawn Powers shows us how to do a basic backup in Linux. Or as he puts it, a public service announcement to please do a backup if you haven't in awhile!&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt; &lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/weekend-reading-backups" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Sat, 19 May 2018 12:48:00 +0000</pubDate>
    <dc:creator>Carlie Fairchild</dc:creator>
    <guid isPermaLink="false">1339898 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Ideal Backups with zbackup</title>
  <link>https://www.linuxjournal.com/content/ideal-backups-zbackup</link>
  <description>  &lt;div data-history-node-id="1338587" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/david-barton" lang="" about="https://www.linuxjournal.com/users/david-barton" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;David Barton&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
Data is growing both in volume and importance. As time goes on, the
amount of data that we need to store is growing, and the data itself
is becoming more and more critical for organizations. It is becoming
increasingly important to be able to back up and restore this information
quickly and reliably. Using cloud-based systems spreads out the data 
over many servers and locations.
&lt;/p&gt;

&lt;p&gt;
Where I work, data has grown from less than 1GB on a single server to
more than 500GB spread out on more than 30 servers in multiple data centers.
Catastrophes like the events at Distribute IT and Code Spaces demonstrate
that ineffective backup practices can destroy a thriving business.
Enterprise-level backup solutions typically cost a prohibitive amount,
but the tools we need to create a backup solution exist within the Open
Source community.
&lt;/p&gt;


&lt;span class="h3-replacement"&gt;
zbackup to the Rescue&lt;/span&gt;

&lt;p&gt;
After switching between many different backup strategies, I have found
what is close to an ideal backup solution for our particular use case.
That involves regularly backing up many machines with huge numbers of
files as well as very large files and being able to restore any backup
previously made.
&lt;/p&gt;

&lt;p&gt;
The solution combines zbackup, rsync and LVM snapshots. zbackup works
by deduplicating a stream—for example, a tar or database backup—and storing the
blocks into a storage pool. If the same block ever is encountered again,
the previous one is reused.
&lt;/p&gt;

&lt;p&gt;
Combining these three elements gives us a solution that provides:
&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;
&lt;p&gt;
Multiple versions: we can store complete snapshots of our system every
hour, and deduplication means the incremental storage cost for each
new backup is negligible.
&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;
Storing very large files: database backups can be very large but differ
in small ways that are not block-aligned (imagine inserting one byte
at the beginning of a file). Byte-level deduplication means we 
store only the changes between the versions, similar to doing a diff.
&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;
Storing many small files: backing up millions of files gives a much
smaller number of deduplicated blocks that can be managed more easily.
&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;
Easily replicating between disks and over a WAN: the files in the storage
pool are immutable; new blocks are stored as new files. This makes
rsyncing them to other drives or machines very fast and efficient.
It also means we can synchronize them to virtually any kind of machine
or file storage.
&lt;/p&gt;&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;
Compression: compressing files gives significant size reductions,
but using it often stops rsync or deduplication from working.
zbackup compresses the blocks after deduplication, so rsyncing is
still efficient. As mentioned previously, only new blocks need to be rsynced.
&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/ideal-backups-zbackup" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Mon, 19 Jan 2015 19:28:30 +0000</pubDate>
    <dc:creator>David Barton</dc:creator>
    <guid isPermaLink="false">1338587 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Crashplan, the Only Reason I Install Java</title>
  <link>https://www.linuxjournal.com/content/crashplan-only-reason-i-install-java</link>
  <description>  &lt;div data-history-node-id="1084367" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/shawn-powers" lang="" about="https://www.linuxjournal.com/users/shawn-powers" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Shawn Powers&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
I'm the sort of person who doesn't like to install Java. I actually don't
like to install Flash either, but it's still tough to survive browsing
the Internet without Flash installed. There is one program that makes
me break my own rules, however, and that's Crashplan.
&lt;/p&gt;

&lt;p&gt;
For years, I've been singing the praises of BackupPC, and for servers,
I still think it's the best thing going. The problem with BackupPC,
however, is in order for it to work reliably, your workstations need to
be on all the time. This is especially difficult with laptops.
&lt;/p&gt;

&lt;p&gt;
Crashplan is an incredibly powerful backup utility that allows local
or offsite backup, and the company offers cloud-based storage for
reasonable rates. Normally, I wouldn't be so excited by a paid service and
a non-open-source software package, even if it does offer a Linux-native
client. The folks at Code 42, however, have given away the ability to
swap storage with friends as an alternative to their paid-cloud-based
service. If you have a computer at work, and a computer at home, you
can back them up over the Internet to each other completely free!
&lt;/p&gt;

&lt;img src="http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/large-550px-centered/u1002061/11441crashf1.jpg" alt="" title="" class="imagecache-large-550px-centered" /&gt;&lt;p&gt;
As I already mentioned, I normally don't like Java-based programs like Crashplan, but its
functionality is so great, I don't mind breaking my own rules. More than
that, I give a lot of credit to Code 42 for not only making a native Linux
client, but also for giving away incredible functionality for free. If
you're not backing up your data, be sure to consider Crashplan at &lt;a href="http://www.crashplan.com"&gt;http://www.crashplan.com&lt;/a&gt;.
Its price, feature set and generous non-paid features make it this
month's Editors' Choice!
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/crashplan-only-reason-i-install-java" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Tue, 05 Mar 2013 15:41:29 +0000</pubDate>
    <dc:creator>Shawn Powers</dc:creator>
    <guid isPermaLink="false">1084367 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>BackupPC</title>
  <link>https://www.linuxjournal.com/content/backuppc</link>
  <description>  &lt;div data-history-node-id="1018969" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/shawn-powers" lang="" about="https://www.linuxjournal.com/users/shawn-powers" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Shawn Powers&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;Some tools are so amazing, but unfortunately, if no one ever talks about them, many folks never hear of them. One of those programs is BackupPC. You may have heard Kyle Rankin and myself talk about BackupPC on the &lt;em&gt;Linux Journal&lt;/em&gt; Insider podcast, or perhaps you've seen us write about it here in &lt;em&gt;Linux Journal&lt;/em&gt; before. If you haven't checked it out, you owe it to yourself to do so. BackupPC has some great features:&lt;/p&gt;
&lt;ul type="disc"&gt;&lt;li&gt;
&lt;p&gt;Hard drive-based backups, no tape swapping.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Support for NFS, SSH, SMB and rsync.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Hard linking to save valuable disk space.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Individual files can be restored in place in real time.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Powerful and simple Web interface.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;E-mail notification on errors.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Free!&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;BackupPC is one of those projects that doesn't get updated terribly often. It doesn't have flashy graphics. It doesn't require constant maintenance. It just works, and it works well. Check it out: &lt;a href="http://backuppc.sourceforge.net"&gt;backuppc.sourceforge.net&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/large-550px-centered/u1002061/10930backupf1.inline_0.jpg" /&gt;&lt;/p&gt;

&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/backuppc" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Thu, 17 Mar 2011 13:00:00 +0000</pubDate>
    <dc:creator>Shawn Powers</dc:creator>
    <guid isPermaLink="false">1018969 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Clonezilla Live</title>
  <link>https://www.linuxjournal.com/content/clonezilla-live</link>
  <description>  &lt;div data-history-node-id="1013614" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/michael-reed" lang="" about="https://www.linuxjournal.com/users/michael-reed" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Michael Reed&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;&lt;a href="http://clonezilla.org/" rel="nofollow"&gt;Clonezilla&lt;/a&gt; is a bootable CDROM designed for partition backup and restoration. Unlike &lt;a href="http://www.sysresccd.org/Main_Page" rel="nofollow"&gt;SystemRescueCD&lt;/a&gt;, Clonezilla Live doesn't contain an array of utilities, rather, it is a single, focused tool. However, if you're interested in simply backing up or restoring whole partitions to or from files, or copying one partition onto another, Clonezilla might be just what you're looking for.&lt;/p&gt;
&lt;p&gt;There are two primary uses for a tool such as this one: backup and subsequent restoration in the event of a mishap or creating a clone of an existing system. So, you could install Linux on one machine, backup the entire disk to a file and then copy the setup to other machines. On the other hand, the partition imaging allows you to do a system backup that can restore a complete system, unlike a traditional backup utility that can only restore your files.&lt;/p&gt;
&lt;p&gt;When imaging to a file, the resulting file should be smaller than the entire size of the partition because Clonezilla doesn't back up the free space. It has support for most of the file systems that you are likely to encounter and it can backup those that it doesn't recognise, although this results in larger files. When restoring a partition, the hard disk drive must be the same size or larger than the source hard drive, but you can copy a smaller hard drive onto a larger one.&lt;/p&gt;
&lt;p&gt;Note that another version of Clonezilla, Clonezilla SE (Server Edition) is designed for restoring partitions to multiple machines via a network for mass cloning. Clonezilla Live, the version that we are discussing here, can restore or backup a single partition over a network or a removable storage device such as a USB stick, or even another local hard drive. A partition image file can't reside upon a partition that is going to be operated upon.&lt;/p&gt;
&lt;p&gt;Now that we've determined what Clonezilla is for, how easy is it to use? The answer is that the procedure is very simple. The start up menu is, as you might expect, mainly orientated towards starting the partition copying utility, although it does feature options for network booting, starting &lt;a href="http://www.freedos.org/" rel="nofollow"&gt;FreeDOS&lt;/a&gt; or running &lt;a href="http://www.memtest.org/" rel="nofollow"&gt;Memtest&lt;/a&gt;. This means that, if armed with only a Clonezilla Live disc, you might find yourself stuck if you needed to edit some files or even edit the partition table of a disk.&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/clonezilla-live" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Fri, 03 Sep 2010 15:44:17 +0000</pubDate>
    <dc:creator>Michael Reed</dc:creator>
    <guid isPermaLink="false">1013614 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>Stupid afio Tricks</title>
  <link>https://www.linuxjournal.com/content/stupid-afio-tricks</link>
  <description>  &lt;div data-history-node-id="1012766" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/user/800005" lang="" about="https://www.linuxjournal.com/user/800005" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;LJ Staff&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;I've already covered tar and all the wonderful ways to use it, but it's not the only tool at your disposal. Another popular backup tool is afio. Depending on your distribution, it already may be installed. On Ubuntu, for example, run the following to install it:&lt;/p&gt;
&lt;pre&gt;
sudo apt-get install afio
&lt;/pre&gt;&lt;p&gt;
Now you have a fairly powerful tool at your disposal for archiving files and making backups.&lt;/p&gt;
&lt;p&gt;By default, afio reads and writes the files being archived on standard input and standard output. This means you can create a list of files to archive with another program, like find, and pipe it to afio to do the actual archive. Once you have your list of files, you can apply five basic commands to those files:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
      -o — create an archive.
&lt;/li&gt;
&lt;li&gt;
      -i — install (or unpack) an archive.
&lt;/li&gt;
&lt;li&gt;
      -t — test (or list) the files stored in an archive.
&lt;/li&gt;
&lt;li&gt;
      -r — verify the files stored in an archive against the filesystem.
&lt;/li&gt;
&lt;li&gt;
      -p — copy the files to a given directory location.
&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;If you want to create a simple archive of all of your C source code files, execute:&lt;/p&gt;
&lt;pre&gt;
find . -name *.c -print | afio -o -Z source_code
&lt;/pre&gt;&lt;p&gt;
When you want to extract these files again, execute:&lt;/p&gt;
&lt;pre&gt;
afio -i -Z source_code
&lt;/pre&gt;&lt;p&gt;
When you run afio as a regular user, all file paths are stored with no leading /. This means when you unpack an archive, it unpacks in the current directory. The idea is to avoid overwriting system files accidentally. To keep the leading /, use the command-line option -x. Running afio as the superuser reverses this behavior—any leading / is maintained, and you need to use the command-line option -X to get the usual behavior of stripping the leading /.&lt;/p&gt;
&lt;p&gt;If space is at a premium, afio also can compress your archive, just like tar, with the -Z command-line option. There is one very big difference, however. When you compress a tar archive, the entire archive file is compressed. This means if one part of the file is corrupted, you potentially could lose all the files in the archive. When you compress an afio archive, the archived files actually are compressed individually. So if one file becomes corrupted, by whatever means, you won't lose any of the other files in the archive.&lt;/p&gt;
&lt;p&gt;When you compress an archive, afio uses gzip by default. You can tell gzip what compression factor to use with the &lt;cite&gt;-G num&lt;/cite&gt; command-line option, where num is the amount of compression gzip will apply to the archived files. This is a number between 0 (for no compression) and 9 (for maximum compression), with a default of 6.&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/stupid-afio-tricks" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Fri, 23 Jul 2010 13:00:00 +0000</pubDate>
    <dc:creator>LJ Staff</dc:creator>
    <guid isPermaLink="false">1012766 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
