-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD 11.2: "[WARNING] Could not parse date" #137
Comments
echo $OSTYPE returns small letters id, for example 'freebsd11.2', while script expects FreeBSD* string. In fn_parse_date() either change FreeBSD* to freebsd* or add another line below it with the right string. Kind of diff below, makes rsync-time-backup work well.
|
Thanks, that solves the problem! |
I am also having this issue. I tried adding the code above, saving, and relaunching the command prompt, but I was met with the same error. I also tried clearing all the existing backup files and the log files in my user directory, but this did not resolve the issue. I'm not sure if this will cause any issues with making backups other than the expiration policies, but it would be better if I could fix it. I would appreciate any help anyone could give. Edit: I also tried replacing
with
since Edit2: I also tried adding |
I was able to resolve the issue for the time being with the help of tehZevo by replacing the switch case in the fn_parse_date() {
date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s
} This would need to be changed if running rsync natively or though another program than cygwin. It appears that |
I have the same issue:
The pull request #191 from @sheridans solved it for me. |
Do I need special dependencies for the backup expiration logic? In FreeBSD 11.2 I get the error message "Could not parse date" and the default expiration strategy is not implemented.
Thanks for any help!
The text was updated successfully, but these errors were encountered: