anchor.diff:            This option defines (in the format used by cron) when the
             databases should be dumped.
             The default is to update at 01:15 (at night) every day.
  +        '';
  +      };
  +
  +      user = mkOption {
  +        default = "mysql";
  +        description = ''
  +          User to be used to perform backup.
           '';
         };
   
  
positive.code:   location = config.services.mysqlBackup.location ;
  
    mysqlBackupCron = db : ''
      ${config.services.mysqlBackup.period} mysql ${mysql}/bin/mysqldump ${db} | ${gzip}/bin/gzip -c > ${location}/${db}.gz
    ''; 
  
  in
  
negative.code: 
      system.activationScripts.mysqlBackup = pkgs.stringsWithDeps.fullDepEntry ''
           mkdir -m 0700 -p ${config.services.mysqlBackup.location}
           chown ${config.services.mysqlBackup.user} ${config.services.mysqlBackup.location}
      '' [ "stdio" "defaultPath" "systemConfig" "users" ];
    };
    
  