automysqlbackup and rsync

Discussion in 'Server Operation' started by rusty, Jun 21, 2010.

  1. rusty

    rusty Member

    Ubuntu 10.04 Perfect Server

    I have automysqlbackup depositing the backup files into a folder that gets rsync'd daily. Is there a way to have those file ownership/permissions match the other files in that folder?

    The automysqlbackup files are owned by root. I could setup a cron job to run chown/chmod, but what would be the best way to do this?

  2. falko

    falko Super Moderator ISPConfig Developer

    You can run
    chown -R user:group /path/to/directory
    to change the ownership of that directory and all files in it.

Share This Page