Adding better backups and log rotation, and updating files around it
This commit is contained in:
1 parent
bbd2de6792
commit
527ba5cf58
7 files changed
+64
-15
No files matched your search
@@ -7,7 +7,8 @@ if [ ! -d /home/$user/_db_backups ]; then
|
||||
mkdir -p /home/$user/_db_backups
|
||||
fi
|
||||
|
||||
/usr/bin/mysqldump $mysql_db > /home/$user/_db_backups/$mysql_db.$dt.sql"
|
||||
/usr/bin/find /home/$user/_db_backups/ -type f -mmin +360 -delete"
|
||||
/usr/bin/mysqldump $mysql_db > /home/$user/_db_backups/$mysql_db.$dt.sql
|
||||
chown -R $user:$user /home/$user/_db_backups
|
||||
/usr/bin/find /home/$user/_db_backups/ -type f -mmin +360 -delete
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user