Correcting myself after I open two tabs and modify the same wiki?

29 views
Skip to first unread message

leeand00

unread,
Jun 7, 2012, 11:21:04 AM6/7/12
to tiddl...@googlegroups.com
Determining the newest? backup when doing something stupid like opening a tiddlywiki in more than one tab...modifying them both and saving the older version?

Here is my directory listing sorted by date.

 Volume in drive G is THMB_DRV
 Volume Serial Number is XXXX-XXXX

 Directory of G:\somedrive\some folder

09/12/2011  09:46 AM    <DIR>          topics
03/21/2012  08:06 AM    <DIR>          ..
03/21/2012  08:06 AM    <DIR>          .
03/21/2012  08:10 AM    <DIR>          twbackup
03/24/2012  09:53 AM    <DIR>          dia
05/18/2012  09:00 AM           601,426 index.20120518.1300140330.html
05/18/2012  09:03 AM           602,065 index.20120518.1303550540.html
05/18/2012  11:57 AM           602,153 index.20120518.1324255810.20120518.1557503580.html
05/18/2012  01:20 PM           603,016 index.20120518.1324255810.20120518.1720395960.html
05/18/2012  01:33 PM           604,249 index.20120518.1324255810.20120518.1733109480.html
05/18/2012  02:12 PM           604,716 index.20120518.1324255810.20120518.1812280770.html
05/18/2012  03:13 PM           605,199 index.20120518.1324255810.20120518.1913430910.html
05/18/2012  03:27 PM           605,399 index.20120518.1324255810.20120518.1927271400.html
05/18/2012  03:51 PM           605,433 index.20120518.1324255810.20120518.1951106010.html
05/18/2012  04:25 PM           605,433 index.20120518.1324255810.20120518.2025105780.html
05/18/2012  04:41 PM           605,468 index.20120518.1324255810.20120518.2041574840.html
05/18/2012  04:47 PM           605,606 index.20120518.1324255810.20120518.2047079300.html
05/19/2012  10:21 AM           605,695 index.20120518.1324255810.20120519.1421569420.html
05/19/2012  10:23 AM           606,110 index.20120518.1324255810.20120519.1423178870.html
05/19/2012  10:27 AM           606,176 index.20120518.1324255810.20120519.1427419500.html
05/19/2012  10:32 AM           606,434 index.20120518.1324255810.20120519.1432548960.html
05/19/2012  10:39 AM           606,834 index.20120518.1324255810.20120519.1439087410.html
05/19/2012  12:26 PM           606,834 index.20120518.1324255810.20120519.1626162660.html
05/19/2012  12:31 PM           607,830 index.20120518.1324255810.20120519.1631340900.html
05/19/2012  01:11 PM           607,830 index.20120518.1324255810.20120519.1711248000.html
05/19/2012  01:18 PM           607,946 index.20120518.1324255810.20120519.1718017730.html
05/19/2012  01:34 PM           608,044 index.20120518.1324255810.20120519.1734208480.html
05/19/2012  01:35 PM           608,659 index.20120518.1324255810.20120519.1735077230.html
05/19/2012  01:41 PM           608,702 index.20120518.1324255810.20120519.1740592850.html
05/19/2012  01:41 PM           609,221 index.20120518.1324255810.20120519.1741384130.html
05/19/2012  02:23 PM           609,351 index.20120518.1324255810.20120519.1823486970.html
05/19/2012  04:07 PM           609,351 index.20120518.1324255810.20120519.2007561860.html
05/20/2012  06:55 PM           609,351 index.20120518.1324255810.20120520.2255191770.html
05/21/2012  10:05 AM           609,351 index.20120518.1324255810.20120521.1405574090.html
05/21/2012  10:07 AM           610,985 index.20120518.1324255810.20120521.1407387640.html
05/21/2012  10:15 AM           610,985 index.20120518.1324255810.20120521.1415455800.html
05/23/2012  09:34 AM           610,985 index.20120518.1324255810.html
05/23/2012  09:34 AM           610,985 index.20120518.1324255810.20120523.1334568390.html
05/24/2012  04:37 PM           602,153 index.20120524.2037553000.html
05/24/2012  04:38 PM           603,136 index.20120524.2038213540.html
05/24/2012  04:38 PM           603,140 index.20120524.2038558180.html
05/24/2012  04:41 PM           603,201 index.20120524.2041535640.html
05/24/2012  04:47 PM           603,201 index.20120524.2047088710.html
05/24/2012  04:50 PM           603,303 index.20120524.2050109760.html
05/24/2012  04:50 PM           603,633 index.20120524.2050187610.html
05/24/2012  04:50 PM           603,633 index.20120524.2050524650.html
05/25/2012  01:05 PM           603,683 index.20120525.1705336110.html
05/28/2012  01:55 PM           603,683 index.20120528.1755142920.html
05/28/2012  02:45 PM           603,896 index.20120528.1845115550.html
05/28/2012  04:17 PM           603,896 index.20120528.2017092170.html
05/28/2012  04:46 PM           606,140 index.20120528.2046410510.html
05/28/2012  05:04 PM           606,158 index.20120528.2104026530.html
05/28/2012  05:16 PM           607,585 index.20120528.2116258410.html
05/28/2012  05:27 PM           609,159 index.20120528.2127290020.html
05/28/2012  07:23 PM           610,294 index.20120528.2323051790.html
05/28/2012  07:32 PM           613,318 index.20120528.2332253420.html
05/28/2012  07:43 PM           614,833 index.20120528.2343426350.html
05/28/2012  07:48 PM           616,776 index.20120528.2348267600.html
05/28/2012  07:54 PM           616,810 index.20120528.2354375400.html
05/28/2012  08:02 PM           618,426 index.20120529.0002068160.html
05/28/2012  08:06 PM           619,545 index.20120529.0006237150.html
05/28/2012  08:14 PM           620,510 index.20120529.0014370700.html
05/28/2012  11:48 PM           621,457 index.20120529.0348284120.html
05/29/2012  12:05 AM           621,706 index.20120529.0404594410.html
05/29/2012  12:23 AM           621,763 index.20120529.0423178180.html
05/29/2012  10:25 AM           622,098 index.20120529.1425572420.html
05/29/2012  11:32 AM           622,112 index.20120529.1532194770.html
05/29/2012  11:36 AM           622,144 index.20120529.1536397940.html
05/29/2012  11:58 AM           622,144 index.20120529.1558095890.html
05/29/2012  12:00 PM           622,144 index.20120529.1600318440.html
05/29/2012  12:00 PM           621,457 index.html.old
05/29/2012  01:53 PM           622,436 index.20120529.1753251820.html
05/29/2012  01:55 PM           622,467 index.20120529.1755312110.html
05/29/2012  05:56 PM    <DIR>          img
05/29/2012  05:56 PM           622,431 index.20120529.2156467620.html
05/30/2012  06:35 AM           622,457 index.20120530.1035167060.html
05/30/2012  10:18 AM           622,457 index.20120530.1418420220.html
05/30/2012  10:26 AM           622,699 index.20120530.1426529280.html
05/30/2012  10:27 AM           623,567 index.20120530.1427140250.html
05/30/2012  10:35 AM           623,567 index.20120530.1435033420.html
05/31/2012  09:29 AM           623,567 index.20120531.1328590200.html
05/31/2012  09:51 AM           624,766 index.20120531.1351275490.html
05/31/2012  10:28 AM           624,766 index.20120531.1428037930.html
05/31/2012  12:25 PM           625,344 index.20120531.1625349350.html
05/31/2012  02:09 PM           625,481 index.20120531.1809268090.html
05/31/2012  04:16 PM           625,481 index.20120531.2016118510.html
06/01/2012  11:25 AM           625,440 index.20120601.1525209510.html
06/01/2012  11:26 AM           626,291 index.20120601.1526147550.html
06/01/2012  11:50 AM           626,291 index.20120601.1550421150.html
06/01/2012  11:51 AM           626,531 index.20120601.1551510430.html
06/01/2012  12:17 PM           626,536 index.20120601.1617539240.html
06/01/2012  12:20 PM           628,922 index.20120601.1620098790.html
06/01/2012  12:49 PM           629,123 index.20120601.1649489800.html
06/01/2012  12:52 PM           630,767 index.20120601.1652391840.html
06/01/2012  12:53 PM           630,846 index.20120601.1653224800.html
06/01/2012  01:49 PM           630,869 index.20120601.1749567670.html
06/01/2012  01:51 PM           631,481 index.20120601.1751404960.html
06/01/2012  01:56 PM           631,670 index.20120601.1756490730.html
06/01/2012  02:00 PM           631,774 index.20120601.1800325550.html
06/01/2012  02:03 PM           631,810 index.20120601.1803198360.html
06/01/2012  02:19 PM           631,847 index.20120601.1819225610.html
06/01/2012  02:49 PM           631,847 index.20120601.1849275430.html
06/01/2012  03:21 PM           631,852 index.20120601.1921358310.html
06/01/2012  03:45 PM           631,852 index.20120601.1944591190.html
06/04/2012  04:11 PM           632,552 index.20120604.2011179780.html
06/04/2012  04:14 PM           632,552 index.20120604.2014052250.html
06/04/2012  04:14 PM           632,832 index.20120604.2014156020.html
06/04/2012  04:14 PM           625,481 index.20120604.2014199750.html
06/05/2012  08:30 AM           632,832 index.20120605.1230002880.html
06/05/2012  08:32 AM           632,843 index.20120605.1232506180.html
06/05/2012  08:37 AM           632,852 index.20120605.1237299820.html
06/05/2012  09:16 AM           632,861 index.20120605.1316007550.html
06/06/2012  01:07 PM           632,930 index.html
06/06/2012  01:07 PM           632,924 index.20120606.1707208250.html
06/07/2012  11:14 AM                 0 file.txt
             109 File(s)     66,612,853 bytes
               6 Dir(s)  10,936,811,520 bytes free

I noticed some changes in my wiki started disappearing in the index.html file, and I also noticed that these changes reappeared in the file index.20120518.1324255810.20120523.1334568390.html

I feel really stupid, but I don't know how to determine which of the 

index.xxxxxxxx.xxxxxxxxx.xxxxxxx.xxxxxxxxxxx.html  

...files is the one I saved when I mistakenly opened a backup and saved it, or mistakenly saved an old version of the file...

I'm so embarrassed about this...I've been using Tiddlywiki for like 5 years and I've never had this happen, but how would one go about determining where they made the mistake in a mess like this?

Thank you, 
   and I apologize if I have been unclear, but it's only because I've confused myself...

Eric Shulman

unread,
Jun 7, 2012, 11:53:28 AM6/7/12
to TiddlyWiki
TiddlyWiki backs up files by adding a date/time stamp to the
filename. The first part of the timestamp (e.g., "20120524") is the
date, using format "YYYYMMDD" (year,month,date). The second part of
the timestamp (following the ".") is the current time-of-day using
format "HHMMSSmmm0" (hours,minutes,seconds,milliseconds, plus a
trailing "0")

Thus, if you are editing "index.html", backup files will have names
like
index.20120524.2037553000.html

However, in your directory listing, you also have files with names
like:
index.20120518.1324255810.20120518.1557503580.html

This indicates that you, at some point, *directly* opened a backup
file named
index.20120518.1324255810.html
and then edited/saved it, resulting in the double timestamp in the
filename.

When you started editing the backup file directly, you essentially
"forked" your document. Changes made to the main file are being saved
to 'index.html', while changes made to the backup are being saved to
index.20120518.1324255810.html ... and, of course, each file save
creates a corresponding backup (with the added timestamp).

Note that the initial timestamp, "20120518.1324255810", is the same
for all these backup files, but the second timestamp varies based on
when the file was saved. You should be able to use the timestamp
information in the backup filenames to re-construct a timeline of
changes you have made, and then hand-merge content from the above two
files to re-unify the divergent revisions.

good luck!

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

WAS THIS ANSWER HELPFUL? IF SO, PLEASE MAKE A DONATION
http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

TonyM

unread,
Jun 14, 2012, 2:41:10 AM6/14/12
to tiddl...@googlegroups.com
Keep a backup, but could you not import all the tiddlers from each iteration into a single tiddlywiki until you had the same result ?
Reply all
Reply to author
Forward
0 new messages