User Tools

Site Tools


public:managing_zfs_on_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:managing_zfs_on_debian [2024/04/19 22:08] – [Creating a pool] thomaspublic:managing_zfs_on_debian [2024/05/03 21:29] (current) – [Transferring a snapshot to a pool on another server] thomas
Line 65: Line 65:
 </code> </code>
  
 +===== Destroying a zpool =====
 +
 +<code>
 +zpool destroy tank
 +</code>
 ===== Listing snapshots ===== ===== Listing snapshots =====
  
Line 93: Line 98:
 nc -l -p 7777 | zfs recv -F tank/storage nc -l -p 7777 | zfs recv -F tank/storage
 </code> </code>
 +
 +:!: Apparently, when using ''nc'', the pipe may not close automatically when the sending process is done. When there is no longer any throughput, kill the sending and receiving ''nc'' processes.
  
 If you have ''pv'' installed, it's ideal for showing progress: If you have ''pv'' installed, it's ideal for showing progress:
Line 108: Line 115:
 </code> </code>
  
-:!: If you kill the receiving process, it might take a while before it exits. I suspect this is because it is cleaning up what it has already received, so there is no incomplete dataset on the receiving system.+If you want to send the difference between two snapshotsyou can do so as follows: 
 + 
 +<code> 
 +zfs send -i tank/storage@snap1 tank/storage@snap2 | zfs recv tank/storage 
 +</code> 
 + 
 +This also works with the ''--raw'' option if needed.
 ====== References ====== ====== References ======
  
   * https://wiki.debian.org/ZFS   * https://wiki.debian.org/ZFS
   * https://www.reddit.com/r/zfs/comments/rw20dc/encrypted_remote_backups/   * https://www.reddit.com/r/zfs/comments/rw20dc/encrypted_remote_backups/
 +  * https://docs.oracle.com/cd/E18752_01/html/819-5461/docinfo.html
  
 {{tag>Debian Linux ZFS}} {{tag>Debian Linux ZFS}}
  
public/managing_zfs_on_debian.1713564530.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki