Merge branch 'FixSnapper' into 'master'
Fix snapper See merge request readynas-scripts/share_lun_ui_fix.sh!11
This commit is contained in:
commit
6a00479546
1 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ EOF
|
||||||
follow symlinks = 1
|
follow symlinks = 1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/snapper/$((shares-1)) << EOF
|
cat > /etc/snapper/configs/$((shares-1)) << EOF
|
||||||
|
|
||||||
# subvolume to snapshot
|
# subvolume to snapshot
|
||||||
SUBVOLUME="/$volume/$item"
|
SUBVOLUME="/$volume/$item"
|
||||||
|
@ -259,6 +259,7 @@ if [[ ! $number ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "== [Info] $number volume(s) found."
|
echo "== [Info] $number volume(s) found."
|
||||||
|
backupsnappershots
|
||||||
for volume in $volumes; do
|
for volume in $volumes; do
|
||||||
echo "== [Task] Investigating volume /$volume..."
|
echo "== [Task] Investigating volume /$volume..."
|
||||||
objects=$(cd /"$volume"; ls -dA ./*/ 2>/dev/null)
|
objects=$(cd /"$volume"; ls -dA ./*/ 2>/dev/null)
|
||||||
|
@ -268,8 +269,7 @@ else
|
||||||
objects=$(echo "$objects" |egrep -v "^.apps\/$|^\.\/home\/$|^.purge\/$|^._share\/$|^.timemachine\/$|^.vault\/$|^.TemporaryItems\/$" | sed 's/\/$//;s/\.\///')
|
objects=$(echo "$objects" |egrep -v "^.apps\/$|^\.\/home\/$|^.purge\/$|^._share\/$|^.timemachine\/$|^.vault\/$|^.TemporaryItems\/$" | sed 's/\/$//;s/\.\///')
|
||||||
echo "=== [Info] Number of items found : $(echo $objects | wc -w)"
|
echo "=== [Info] Number of items found : $(echo $objects | wc -w)"
|
||||||
echo "=== [Info] Items found:" $objects
|
echo "=== [Info] Items found:" $objects
|
||||||
backup_configs
|
backup_configs
|
||||||
backupsnappershots
|
|
||||||
for item in $objects; do
|
for item in $objects; do
|
||||||
echo "=== [Task] Reviewing $item"
|
echo "=== [Task] Reviewing $item"
|
||||||
if ! btrfs subv show /"$volume"/"$item" &>/dev/null; then
|
if ! btrfs subv show /"$volume"/"$item" &>/dev/null; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue