[Nix-dev] cron job to backup a database as part of the configuration.nix file

Peter Simons simons at cryp.to
Thu May 28 12:23:14 CEST 2015


Stewart Mackenzie writes:

 > Ideally we'ed like the actual backup script to be part of the
 > configuration.nix file which then is used in the cron job.

  services.cron.systemCronJobs = [
    "30 */3 * * * root backup-script.sh"
  ];

Best regards,
Peter



More information about the nix-dev mailing list