Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Cody Cook
5f8089a247 Update share_lun_ui_fix.sh 2018-10-02 16:11:10 -07:00

View file

@ -101,6 +101,16 @@ check_existing_backups() {
fi fi
} }
subv_checker() {
# Check to see if subv list matches actual directory folders
# This might be because user created folders in the root that are not btrfs subvolumes
# or the user moved a subv from the root to another subvolume (not supported in OS 6)
# Check the count
# Objects counting
count_btrfs=$(btrfs subv list /data | egrep -v ".snapshots|.apps|.vault|._share|.timemachine|.purge|home\/|home$" | awk '{print $9}' | wc -l)
}
iscsi_create() { iscsi_create() {
iscsi=$((iscsi+1)) iscsi=$((iscsi+1))
found=$((found+1)) found=$((found+1))
@ -174,6 +184,7 @@ else
else else
objects=$(echo "$objects" | egrep -v "^.apps\/$|^home\/$|^.purge\/$|^._share\/$|^.timemachine\/$|^.vault\/$|^.TemporaryItems\/$" | sed 's/\/$//') objects=$(echo "$objects" | egrep -v "^.apps\/$|^home\/$|^.purge\/$|^._share\/$|^.timemachine\/$|^.vault\/$|^.TemporaryItems\/$" | sed 's/\/$//')
echo "= Objects found:" $objects echo "= Objects found:" $objects
subv_checker
backup_configs backup_configs
for item in $objects; do for item in $objects; do
echo "== Reviewing $item" echo "== Reviewing $item"