Differences

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

Link to this comparison view

project:rsnapshot-zfs-helper [2018/02/22 18:35]
92.75.65.74 [details]
project:rsnapshot-zfs-helper [2018/02/22 18:44] (current)
92.75.65.74 [Example for creating a zpool:]
Line 46: Line 46:
 /sbin/modprobe zfs /sbin/modprobe zfs
  
 +## caveat: this example (a single disk partition) is neither redundant nor exceptionally performant
 +## and serves for illustration purpose only! 
 ## create partition for zfs: ## create partition for zfs:
 Device     Boot   Start       End   Sectors  Size Id Type Device     Boot   Start       End   Sectors  Size Id Type
Line 55: Line 57:
  
 # create prereq. datasets # create prereq. datasets
-zfs create zp-bak/backup                        -o compression=lz4 -o snapdir=visible -o xattr=sa -o acltype=posixacl -o mountpoint=/backupĀ +zfs create zp-bak/backup                        -o compression=lz4 -o snapdir=hidden -o xattr=sa -o acltype=posixacl -o mountpoint=/backupĀ 
-zfs create zp-bak/backup/hosts                  -o compression=lz4 -o snapdir=visible -o xattr=sa -o acltype=posixacl -o mountpoint=/backup/hosts+zfs create zp-bak/backup/hosts                  -o compression=lz4 -o snapdir=hidden -o xattr=sa -o acltype=posixacl -o mountpoint=/backup/hosts
 df   df  
 -> ->
Line 65: Line 67:
 </code> </code>
  
 +## if you use rsnapshot you have to add the commands commands below
 +## if you use rsnapshot-backups the tool rsnapshot-backup-conf will handle those for you
 Create a zfs dataset for a single backup: Create a zfs dataset for a single backup:
 <code> <code>
-zfs create <ZPOOL>/backup/hosts/<BACKUP-CLIENT> -o compression=lz4 -o snapdir=visible -o xattr=sa -o acltype=posixacl -o mountpoint=/backup/hosts/<BACKUP-CLIENT>/daily.0+zfs create <ZPOOL>/backup/hosts/<BACKUP-CLIENT> -o compression=lz4 -o snapdir=hidden -o xattr=sa -o acltype=posixacl -o mountpoint=/backup/hosts/<BACKUP-CLIENT>/daily.0
 # e.g. # e.g.
-zfs create zp-bak/backup/hosts/srv42 -o compression=lz4 -o snapdir=visible -o xattr=sa -o acltype=posixacl -o mountpoint=/backup/hosts/srv42/daily.0+zfs create zp-bak/backup/hosts/srv42 -o compression=lz4 -o snapdir=hidden -o xattr=sa -o acltype=posixacl -o mountpoint=/backup/hosts/srv42/daily.0
 </code> </code>
  
project/rsnapshot-zfs-helper.txt · Last modified: 2018/02/22 18:44 by 92.75.65.74
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki