⌈⌋ ⎇ branch:  freshcode


Artifact [3f43f4940f]

Artifact 3f43f4940f9d77159afdae9c67dfca67bf20f2c4:

  • File cron.daily/archive.php — part of check-in [d3b762bc93] at 2016-03-08 22:57:02 on branch trunk — Archive screenshots to ALL.txz for mirrors. (user: mario size: 322)

<?php
/**
 * api: cli
 * title: Archive files
 * description: Backup / etc.
 * version: 0.0
 * category: database
 * type: cron
 * x-cron: 5 5 * * *
 *
 * Nightly archive of screenshots http://freshcode.club/img/screenshot/ALL.txz
 *
 */


chdir(dirname(__DIR__));
chdir("img/screenshot");
exec("tar cJf ALL.txz *.jpeg");