diff --git a/worktimer.scm b/worktimer.scm index 847aaf0..54cfb11 100755 --- a/worktimer.scm +++ b/worktimer.scm @@ -935,6 +935,8 @@ (when (and (list? sheet') (not (null? sheet'))) + (when (access? ts-file W_OK) + (copy-file ts-file (string-append ts-file ".bak"))) (with-output-to-file ts-file (lambda () (print-timesheet sheet' deadlines' archives'))))))))))