Compare commits

..

9 commits

Author SHA1 Message Date
04755ebc5c add lzop compression 2021-05-11 15:45:48 +02:00
root
5fb174bcc6 preserve_recordsize 2021-01-08 18:01:33 +01:00
9cc1e599cf Aktualizovat „zfs-backup-mm“ 2020-11-05 09:28:09 +01:00
305b08b544 add way to change lock file for flock using second parameter 2020-09-17 10:49:26 +02:00
cb7d9a4525 delete regex from delete block to filter only zfsnap created snapshots 2019-09-21 22:11:35 +02:00
ba2475aed2 switch to full incremental
change -i parameter to -I when doing incremental backup
2019-09-20 13:21:37 +02:00
1fbc754a9d remove_compression 2019-06-19 20:23:36 +02:00
075263fecc correction 2019-06-07 21:19:11 +02:00
milan
dec3557b45 manjaro_initial 2019-06-07 21:17:33 +02:00
2 changed files with 9 additions and 3 deletions

View file

@ -8,7 +8,7 @@ Edit example config file, run script and config as parameter.
__Requirements:__ __Requirements:__
zfSnap, pv, lzop, Ubuntu (tested on Ubuntu 18.04, 19.04, 19.10 and 20.04) zfsnap, pv, lzop, Manjaro (tested on 6.6.2019)
__THE PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.__ __THE PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.__

View file

@ -23,8 +23,13 @@ IFS='
if [ $zfsnap_enable = "y" ]; then if [ $zfsnap_enable = "y" ]; then
for dataset in $source_datasets; for dataset in $source_datasets;
do do
echo "Tuning zfSnap for "$dataset"" echo "Tuning zfsnap for "$dataset""
for command in $(zfSnap -n -d -zpool28fix -a "$zfsnap_days_keep_snaps"d "$dataset" | grep "$dataset") for command in $(zfsnap snapshot -n -a "$zfsnap_days_keep_snaps"d "$dataset" | grep "$dataset")
do
echo "Doing "$command""
eval "$command";
done
for command in $(zfsnap destroy -n -F "$zfsnap_days_keep_snaps"d "$dataset" | grep "$dataset")
do do
echo "Doing "$command"" echo "Doing "$command""
eval "$command"; eval "$command";
@ -94,3 +99,4 @@ fi
source $1 source $1
zfsnap_block zfsnap_block
) 200>$lock_variable ) 200>$lock_variable