Browse Source

remove worl readable from backups

master
rick 5 months ago
parent
commit
212c46fb50
  1. 3
      lxc_backup.sh

3
lxc_backup.sh

@ -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}/*
Loading…
Cancel
Save