aboutsummaryrefslogtreecommitdiff
path: root/backupninja/rub
diff options
context:
space:
mode:
Diffstat (limited to 'backupninja/rub')
-rw-r--r--backupninja/rub5
1 files changed, 5 insertions, 0 deletions
diff --git a/backupninja/rub b/backupninja/rub
index 1d4fcd30..36495eb8 100644
--- a/backupninja/rub
+++ b/backupninja/rub
@@ -132,6 +132,11 @@ if [ "$read_only" == "1" ] || [ "$read_only" == "yes" ]; then
fi
if [ "$vservers_are_available" == "yes" ]; then
+
+ # sane permission on backup
+ mkdir -p $backupdir/$VROOTDIR
+ chmod 000 $backupdir/$VROOTDIR
+
for candidate in `ls $VROOTDIR`; do
found_excluded_vserver="0"
if [ "$candidate" != "lost+found" ]; then