<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Patrik Dufresne</title>
    <description>The latest articles on DEV Community by Patrik Dufresne (@ikus060).</description>
    <link>https://dev.to/ikus060</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F350297%2F29cf93cd-a963-4165-b91a-c311682b15e8.jpeg</url>
      <title>DEV Community: Patrik Dufresne</title>
      <link>https://dev.to/ikus060</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ikus060"/>
    <language>en</language>
    <item>
      <title>What's new with rdiff-backup?</title>
      <dc:creator>Patrik Dufresne</dc:creator>
      <pubDate>Thu, 17 Sep 2020 17:16:00 +0000</pubDate>
      <link>https://dev.to/ikus060/what-s-new-with-rdiff-backup-c2b</link>
      <guid>https://dev.to/ikus060/what-s-new-with-rdiff-backup-c2b</guid>
      <description>&lt;p&gt;The longstanding Linux backup solution's migration to Python 3 opens opportunity to add many new features.&lt;/p&gt;

&lt;p&gt;In March 2020, rdiff-backup advanced to version 2, 11 years after the last major release. The deprecation of Python 2 at the beginning of 2020 was the impetus for this update, but it gave the development team the opportunity to incorporate other features and benefits.&lt;/p&gt;

&lt;p&gt;For about two decades, rdiff-backup has helped Linux users maintain full backups of their data locally or remotely without needlessly draining resources. This is because the open source solution does reverse incremental backups—backing up only the files that changed from the previous backup.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://opensource.com/article/20/9/rdiff-backup-linux"&gt;Continue reading on opensource.com ...&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>linux</category>
    </item>
    <item>
      <title>How to configure ZFS for rdiff-backup</title>
      <dc:creator>Patrik Dufresne</dc:creator>
      <pubDate>Wed, 22 Jul 2020 13:21:30 +0000</pubDate>
      <link>https://dev.to/ikus060/how-to-configure-zfs-for-rdiff-backup-43dh</link>
      <guid>https://dev.to/ikus060/how-to-configure-zfs-for-rdiff-backup-43dh</guid>
      <description>&lt;p&gt;ZFS is a relatively new file system available for the Linux platform. Its popularity is gaining speed thanks to its great management flexibility and its resilience. To learn more about the benefits of ZFS, check out our previous article.&lt;/p&gt;

&lt;p&gt;Further to our article on the &lt;a href="https://www.ikus-soft.com/en/blog/2020-06-24-advantages-of-using-zfs-for-rdiff-backup/"&gt;benefits of ZFS for rdiff-backup&lt;/a&gt;, you will find herewith more technical information which explains the best configuration practices for ZFS when used with rdiff-backup.&lt;/p&gt;

&lt;h2&gt;
  
  
  For starters
&lt;/h2&gt;

&lt;p&gt;It is highly recommended to create a specific &lt;em&gt;dataset&lt;/em&gt; for storing rdiff-backup deposits. You will then be able to adjust the configuration settings of this &lt;em&gt;dataset&lt;/em&gt; without affecting the configuration of the rest of the system.&lt;/p&gt;

&lt;p&gt;To create a new &lt;em&gt;dataset&lt;/em&gt;, run the following command where &lt;em&gt;rpool&lt;/em&gt; is your &lt;em&gt;zfspool&lt;/em&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo zfs create rpool/backups
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;This will create a default dataset configuration setting that you can adjust later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Activate compression
&lt;/h2&gt;

&lt;p&gt;As mentioned in our previous article, one of the great advantages of ZFS is its ability to directly compress data. First, you will be surprised to find that lz4 compression improves reading and writing performance.&lt;sup&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;p&gt;To activate compression, you need to change &lt;em&gt;compression&lt;/em&gt; properties.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;zfs set compression=lz4 rpool/backups
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Be sure to use lz4 compression mode to optimize performance since other compression modes are more draining on CPU resources.&lt;/p&gt;

&lt;p&gt;Once activated, the new data written on the disk will then be compressed. Existing disk data will retain its original compression mode.&lt;/p&gt;

&lt;p&gt;If you want ZFS to do all the compression work, it is recommended to deactivate rdiff-backup compression by changing your command line as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rdiff-backup --no-compression ...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Implementing this strategy can be complex, as you will need to change the command on the client side or on the server side depending on the way you operate. Should you have any questions about this, please leave a message in the comments.&lt;/p&gt;

&lt;p&gt;If you use Minarca, you can easily implement this strategy by changing the configuration setting to &lt;em&gt;RDIFFBACKUP_ARGS=--no-compression&lt;/em&gt; in &lt;em&gt;/etc/minarca/minarca-shell.conf&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  primarycache &amp;amp; secondarycache
&lt;/h2&gt;

&lt;p&gt;ZFS is known for its high-performance cached system&lt;br&gt;
called &lt;em&gt;Adaptive Replacement Cache (ARC)&lt;/em&gt;. This system  provides great flexibility since it adjusts to different deployment needs. As part of rdiff-backup, it is best to set up the ZFS cache to only store metadata. To quickly activate this feature, the primarycache and secondarycache value must be changed as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo zfs set primarycache=metadata rpool/backups
sudo zfs set secondarycache=metadata rpool/backups
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Deduplication
&lt;/h2&gt;

&lt;p&gt;ZFS also allows you to enable an interesting data deduplication feature. Should two blocks of data be identical, ZFS can only store the same block of data on the disk one time, thus avoiding multiple storage of the same data. This feature is particularly interesting if you back up system files from multiple machines with similar operating systems.&lt;/p&gt;

&lt;p&gt;However, ZFS uses much more RAM. It would be wise to measure the real impact of this feature in the lab for your type of  data backup.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo zfs set dedup=on rpool/backups
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  utf8only
&lt;/h2&gt;

&lt;p&gt;Although rdiff-backup supports the use of a UTF-8-character code restriction file system very well, it is highly recommended to enable non-UTF-8-character support in ZFS for compatibility purposes. This will allow you to safely copy your data from another file system. Moreover, this feature cannot be changed after the &lt;em&gt;dataset&lt;/em&gt; is created. When you need to copy files with a non-UTF-8-character code, it will be too late to change this option.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo zfs create -o utf8only=off rpool/backups
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;ZFS is definitely a file system that you need to&lt;br&gt;
familiarize yourself with if you are a Linux platform manager. It will certainly change your management methodology. However, it is worth mentioning that that FreeBSD also offers advantages over the ZFS On Linux version. We encourage you to find out about this!&lt;/p&gt;

&lt;p&gt;This article was originally posted on &lt;a href="https://www.ikus-soft.com/en/blog/2020-07-22-configure-zfs-for-rdiff-backup/"&gt;ikus-soft.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>zfs</category>
    </item>
    <item>
      <title>Rdiff-backup now supports Python 3 !</title>
      <dc:creator>Patrik Dufresne</dc:creator>
      <pubDate>Wed, 03 Jun 2020 15:12:22 +0000</pubDate>
      <link>https://dev.to/ikus060/rdiff-backup-now-supports-python-3-1d8k</link>
      <guid>https://dev.to/ikus060/rdiff-backup-now-supports-python-3-1d8k</guid>
      <description>&lt;p&gt;We officially make available a new release of rdiff-backup now supporting Python 3. Published on March 15 as v2.0.0, this new release drop support for the deprecated Python 2 and only support Python 3. What does it mean ? It means rdiff-backup will be supported and integrated in newer Linux distribution that has started to drop support of Python 2. Making sure our lovely backup tools stay usable and available to everyone!&lt;/p&gt;

&lt;p&gt;Read more about it here: &lt;a href="https://www.tecmint.com/linux-rdiff-backup-tool/"&gt;https://www.tecmint.com/linux-rdiff-backup-tool/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>backup</category>
      <category>python</category>
    </item>
  </channel>
</rss>
