[GH-ISSUE #131] invalid date ‘+%s’ #101

Closed
opened 2026-02-27 08:14:21 +03:00 by kerem · 3 comments
Owner

Originally created by @antonzhelyazkov on GitHub (Mar 11, 2019).
Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/131

Originally assigned to: @lucascbeyeler on GitHub.

ISSUE TYPE:
  • Bug Report
ENVIRONMENT VERSION
  • Zmbackup Version: 1.2.3
  • Zimbra Version: 8.8.9
  • Linux Distribution & Version: Centos 7
SUMMARY

Hi Team,

I run manually sudo -u zimbra /usr/local/bin/zmbackup -f and I have got this error in my console invalid date ‘+%s’

It seems that script could not get result from command date ‘+%s’.

Server clock is in sync. We use chrony to keep our servers in sync. When I run manually I have got the following output:

[root@mx bash]# date ‘+%s’
date: invalid date ‘‘+%s\’’
[root@mx bash]# date +%s
1552292282

probably backticks in command are the problem ...

Originally created by @antonzhelyazkov on GitHub (Mar 11, 2019). Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/131 Originally assigned to: @lucascbeyeler on GitHub. ##### ISSUE TYPE: - Bug Report ##### ENVIRONMENT VERSION - Zmbackup Version: 1.2.3 - Zimbra Version: 8.8.9 - Linux Distribution & Version: Centos 7 ##### SUMMARY Hi Team, I run manually ```sudo -u zimbra /usr/local/bin/zmbackup -f``` and I have got this error in my console ```invalid date ‘+%s’``` It seems that script could not get result from command ```date ‘+%s’```. Server clock is in sync. We use chrony to keep our servers in sync. When I run manually I have got the following output: ``` [root@mx bash]# date ‘+%s’ date: invalid date ‘‘+%s\’’ [root@mx bash]# date +%s 1552292282 ``` probably backticks in command are the problem ...
kerem 2026-02-27 08:14:21 +03:00
Author
Owner

@cthart commented on GitHub (Feb 26, 2020):

I have the same issue.
Zimbra 8.8.7_GA_1964
Ubuntu 16.04.6 LTS

<!-- gh-comment-id:591689685 --> @cthart commented on GitHub (Feb 26, 2020): I have the same issue. Zimbra 8.8.7_GA_1964 Ubuntu 16.04.6 LTS
Author
Owner

@antonzhelyazkov commented on GitHub (Feb 27, 2020):

@cthart Hi, I solved my issue with reinstall zmbackup.

<!-- gh-comment-id:591811292 --> @antonzhelyazkov commented on GitHub (Feb 27, 2020): @cthart Hi, I solved my issue with reinstall zmbackup.
Author
Owner

@lucascbeyeler commented on GitHub (Dec 8, 2020):

Closing the issue - new releases of Zmbackup does not appear the bug reported.

<!-- gh-comment-id:740645744 --> @lucascbeyeler commented on GitHub (Dec 8, 2020): Closing the issue - new releases of Zmbackup does not appear the bug reported.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zmbackup#101
No description provided.