-
ZFS BuddyBackup plugin guide
Hi, I am handing on this plugin. But I found that this plugin is only for backing up the dataset; I can not use it to take snapshots automatically. My plan is like: cache\appdate and cache\system keep 12 hourly snapshots, 3 daily snapshots on the dataset cache; Back up all the above to extend the HDD dataset, once per day. But on the HDD dataset, I like to keep 12 hourly snapshots, 3 weekly snapshots, and 1 monthly snapshot. I did not find the solution to configure the snapshots for cache. Could you give some idea about that?
-
ZFS in array = slow transfer speed?
Did you guys check the permission, ownership and group? In my case, unbalance worked in awful speed, like 200kb/s, but it got rid off after run new permissions tool. I hope that experience is valuable.
-
btrfs incremental snapshots
Hi, I did. I paste the SMB configure field here:
-
[Plugin] CA User Scripts
Hi, Squid. The pop-up argument input was fine, but after I upgraded the plugin. It's gone. Could you review my code? #!/bin/bash #description=Here is a housekeeping script. By default just deletes empty timestamp directories. Optionally, it can delete snapshots. foregroundOnly=true backgroundOnly=true #arrayStarted=false #name= BTRFS cleanup #argumentDescription="-a purges all snapshots; -i <Comma seperated list of shares> purges the selected shares. example -i Downloads,Test1,Test2 will purge all snapshots for Downloads, Test1, and Test2." #argumentDefault=-a shopt -s nullglob POSITIONAL=() while [[ $# -gt 0 ]] do key="$1" case $key in -i|--include) INCLUDE="$2" shift # past argument shift # past value ;; -a|--all) ALL=YES shift ;; *) # unknown option POSITIONAL+=("$1") # save it in an array for later shift # past argument ;; esac done set -- "${POSITIONAL[@]}" # restore positional parameters #Tokenize include list declare -A includes for token in ${INCLUDE//,/ }; do includes[$token]=1 done #iterate over all disks on array for disk in /mnt/disk*[0-9]* ; do #iterate over each timestamp for timestamp in ${disk}/.snapshots/* ; do #iterate over each share in the timestamp for snap in $timestamp/* ; do if [ -n "${includes[$(basename $snap)]}" ] || [ "$ALL" = "YES" ] ; then echo "Purging - $snap" btrfs subvolume delete $snap fi #check for empty timestamp if [ ! "$(ls -A $timestamp)" ] ; then echo "Purging empty directory - $timestamp" rmdir $timestamp fi done done done and it's original from Thank you so much.
-
-
btrfs incremental snapshots
Hello, Thank you for your great job. For snapshot disks, it works. I can see a list by command "btrfs sub list /mnt/diskN", but it doesn't work via windows 10 access to check the previous version. Does it conflict with "Enhanced macOS interoperability" option? If it is, may I just restore the disks to some specific time point? And what do we do with the cache drive? Seems there're no snapshot on it. Sry, I'm not very good at linux, and do need snapshot function for data safety. Thank you so much.
afon
Members
-
Joined
-
Last visited