manjaro_initial
This commit is contained in:
parent
9678729356
commit
dec3557b45
2 changed files with 8 additions and 3 deletions
|
@ -8,7 +8,7 @@ Edit example config file, run script and config as parameter.
|
||||||
|
|
||||||
__Requirements:__
|
__Requirements:__
|
||||||
|
|
||||||
zfSnap, pv, Ubuntu (tested on Ubuntu 18.04)
|
zfSnap, pv, 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.__
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,17 @@ 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
|
do
|
||||||
echo "Doing "$command""
|
echo "Doing "$command""
|
||||||
eval "$command";
|
eval "$command";
|
||||||
done
|
done
|
||||||
|
for command in $(zfsnap destroy -n -F "$zfsnap_days_keep_snaps"d "$dataset" | grep "$dataset")
|
||||||
|
do
|
||||||
|
echo "Doing "$command""
|
||||||
|
eval "$command";
|
||||||
|
done
|
||||||
done
|
done
|
||||||
backup_block
|
backup_block
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue