I use automysqlbackup
to backup my mysql database.
The problem is I can only run this program using sudo automysqlbackup
. This program dumps the backup into my folder /home/user/backup
but theses files are owned by root and when I connect via ftp to this folder I cannot delete or read them.
Is it possible that any files created by root in the folder /home/user/backup
can be read/write/deleted by user “user” ?
Or is there a way I can run the automysqlbackup
with user “user” ?
Advertisement
Answer
Couldn’t write a bash script, which calls the backup and then changes the permissions with chmod ?