Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Beachte - da dieser Befehl ebenfalls die .my.cnf des jtel Users nutzt, sollte das Backup zuerst eingerichtet werden.

 

Code Block
languagebash
chmod 750 /home/jtel/shared/JTELCarrierPortal/DB/mySQL/cleaners/db_cleaner.sh
cat << 'EOF' > /etc/cron.daily/db_cleaner.cron
#!/bin/bash
su - jtel -c '/home/jtel/shared/JTELCarrierPortal/DB/mySQL/cleaners/db_cleaner.sh'
EOF


chmod 750 /home/jtel/shared/JTELCarrierPortal/DB/mySQL/cleaners/db_cleaner.sh