Thanks very much for this script
I've used it so far in parts - cause i didnt get it fully to work.
(but am sure that's somethign i can fix)
One potential issue.
Shouldnt the tar command also have the p option?
After i restored the files, all permissions on the directories were missing.
So shouldnt it be: