Unsolved
This post is more than 5 years old
9 Posts
0
488
July 18th, 2013 13:00
Replicate using time stamp
Is it possible to use a time stamp when creating a range to replicate. I'm trying to keep from having to replicate hourly backups.
I used this in my repl_cron.cfg...
--after=2013-07-18 08:00:00
--before=2013-07-18 10:00:00
but got this in the replicate.log...
2013/07/18-14:53:57 avtar Info <7701>: Selecting backups after "2013-07-18 00:00:00 CDT" before "2013-07-18 00:00:00 CDT"
2013/07/18-14:53:57 avtar Info <5667>: 0 backups found for client
Thanks!
No Events found!


DELL-Leo
Community Manager
•
9K Posts
0
July 19th, 2013 00:00
Hi papaj,
You are right.
We can use --after=TIMESTAMP with --before=TIMESTAMP potions to define a range of effective dates for replication. Only backups taken within this date range are replicated. Backups taken exactly at this TIMESTAMP are replicated.
About your received messages from replicate.log, cannot find any backups for the client in this date range. So, are you sure there have backups of the client in this date range?
If yes, I think you may to check whether the issue is caused by the timezone issue between client and Avamar server.
papaj2
9 Posts
0
July 19th, 2013 08:00
Thank you Leo Li. There are backups in the time period I specified.
I found the answer to be that the time stamp needs to be enclosed in double quotes and single quotes (because of the space in the time stamp).
This will work.
--after="'2013-07-18 08:00:00'"
DELL-Leo
Community Manager
•
9K Posts
0
July 21st, 2013 18:00
Yes, you are right.
I also checked that we need to use double quotes to cover the timestamp. Like --before="2013-07-18 10:00:00"
Glad to see you solved the problem.