Skip to main content

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:

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.
my path different /var/backup... assume need change path. here questions:

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

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support