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
|
||||
EOF
|
||||
|
||||
cat > /etc/snapper/$((shares-1)) << EOF
|
||||
cat > /etc/snapper/configs/$((shares-1)) << EOF
|
||||
|
||||
# subvolume to snapshot
|
||||
SUBVOLUME="/$volume/$item"
|
||||
|
@ -259,6 +259,7 @@ if [[ ! $number ]]; then
|
|||
exit 1
|
||||
else
|
||||
echo "== [Info] $number volume(s) found."
|
||||
backupsnappershots
|
||||
for volume in $volumes; do
|
||||
echo "== [Task] Investigating volume /$volume..."
|
||||
objects=$(cd /"$volume"; ls -dA ./*/ 2>/dev/null)
|
||||
|
@ -269,7 +270,6 @@ else
|
|||
echo "=== [Info] Number of items found : $(echo $objects | wc -w)"
|
||||
echo "=== [Info] Items found:" $objects
|
||||
backup_configs
|
||||
backupsnappershots
|
||||
for item in $objects; do
|
||||
echo "=== [Task] Reviewing $item"
|
||||
if ! btrfs subv show /"$volume"/"$item" &>/dev/null; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue