Thread: Automysqlbackup Cron Job Question
i installed & configured automysqlbackup , looks it's working fine when run manually. i'm confused script put in cron.daily in readme file:
my path different /var/backup... assume need change path. here questions:code:1. create script below called runmysqlbackup using lines below: #~~~~ copy below here ~~~~ #!/bin/sh /usr/local/bin/automysqlbackup /etc/automysqlbackup/myserver.conf chown root.root /var/backup/db* -r find /var/backup/db* -type f -exec chmod 400 {} \; find /var/backup/db* -type d -exec chmod 700 {} \; #~~~~~ copy above here ~~~~ 2. save suitable location or copy /etc/cron.daily folder.
1. db*? can list path way folder called automysqlbackups instead?
2. why chowning & type f'ing etc. need that? assumed if script ran fine manually put copy in cron.daily folder run once day.
db* backup file names. type f&d tells find command search files or dirs , chmod command secure backup files , make them unreadable anyone.
if want run script daily need either copy /etc/cron.daily or can create symlink current location
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Automysqlbackup Cron Job Question
Ubuntu
Comments
Post a Comment