mirror of
https://github.com/morten-olsen/github-backup.git
synced 2026-02-08 01:36:24 +01:00
Fixed file permissions
This commit is contained in:
@@ -9,7 +9,9 @@ run.action(runBackup)
|
||||
const schedule = program.command('schedule');
|
||||
schedule.action(() => {
|
||||
const schedule = process.env.SCHEDULE || '0 0 3 * * Sunday';
|
||||
console.log(`Starting with schedule ${schedule}`)
|
||||
cron.schedule(schedule, () => {
|
||||
console.log('Starting backup task')
|
||||
runBackup().catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(-1);
|
||||
|
||||
Reference in New Issue
Block a user