remove worl readable from backups
This commit is contained in:
@@ -20,7 +20,7 @@ then
|
||||
exit 2
|
||||
fi
|
||||
|
||||
#only backup container which doesn't contain a 0 at the end
|
||||
#only backup container which doesn't contain a 0 at the endps
|
||||
for container in $(${lxccmd} list --format csv -c n | grep -v "0$");
|
||||
do
|
||||
${lxccmd} stop ${container}
|
||||
@@ -33,3 +33,4 @@ find ${backuppath} -mtime +14 -exec rm -f {} \;
|
||||
|
||||
#own data for backupuser
|
||||
chown -R ${backupuser}:${backupuser} ${backuppath}
|
||||
chmod 400 -R ${backuppath}/*
|
||||
Reference in New Issue
Block a user