<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Restoring file timestamps from backup &#x2F; migration]]></title><description><![CDATA[<p dir="auto">This is a fairly serious issue, since file content is time stamped and sorted at the filesystem level.</p>
<p dir="auto">Restoring a backup doesn't seem to restore the original timestamps from the time of backup. (tgz)</p>
<p dir="auto">Performing a storage migration also does not preserve the timestamps for older content. (cp)</p>
<p dir="auto">What parameters are being used for cp migration &amp; tgz restore from backup ?</p>
<p dir="auto">How do we make this work?</p>
]]></description><link>https://forum.cloudron.io/topic/5398/restoring-file-timestamps-from-backup-migration</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 00:03:24 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5398.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Jul 2021 17:47:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Restoring file timestamps from backup &#x2F; migration on Wed, 28 Jul 2021 14:08:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> there is a already bunch of "workarounds" for rsync. Empty directories, executable bit of files cannot be stored in most object storage. So, there is fsmetadata.json file that stores this information outside of the files. When restoring, we use that file to restore back the state. I guess we can extend that file to also save and restore timestamps.</p>
<p dir="auto">If anyone wants this leave a note and I can look into it in the future.</p>
]]></description><link>https://forum.cloudron.io/post/34469</link><guid isPermaLink="true">https://forum.cloudron.io/post/34469</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 28 Jul 2021 14:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to Restoring file timestamps from backup &#x2F; migration on Wed, 28 Jul 2021 04:00:56 GMT]]></title><description><![CDATA[<p dir="auto">It appears the backup was changed to rsync, and the FTP client config wasn't preserving timestamps when missing content was reuploaded.</p>
<p dir="auto">We're ok for now, in this use case.</p>
<p dir="auto">rsync could be 'fixed' by using .tar before the rsync.<br />
Could be made more efficient too if a fixed chunk size or stream was used, so all the small file operations don't need to be done.</p>
]]></description><link>https://forum.cloudron.io/post/34445</link><guid isPermaLink="true">https://forum.cloudron.io/post/34445</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 28 Jul 2021 04:00:56 GMT</pubDate></item><item><title><![CDATA[Reply to Restoring file timestamps from backup &#x2F; migration on Tue, 27 Jul 2021 20:04:29 GMT]]></title><description><![CDATA[<p dir="auto">It is possible you are using rsync and not tgz? If so, yes, timestamps are not restored for rsync case. I guess we need a mechanism to save all the timestamps in some meta file and restore them back.</p>
]]></description><link>https://forum.cloudron.io/post/34435</link><guid isPermaLink="true">https://forum.cloudron.io/post/34435</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 27 Jul 2021 20:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to Restoring file timestamps from backup &#x2F; migration on Tue, 27 Jul 2021 20:03:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> For tgz restore, timestamps are restored for me. Can you check if the timestamps are stored correctly in the backup using <code>tar -ztvf app_xx.tar.gz</code> ? For example, in my case, I see:</p>
<pre><code>-rw-r--r-- 0/0               0 2009-11-17 15:33 ./data/public/try
</code></pre>
<p dir="auto">Then, after restore, I can confirm that the timestamp is the same. Same for the data migration, after the migrate, the timestamp is preserved:</p>
<pre><code>root@vultr:/mnt/surferdata/public# ls -lh
total 4.0K
-rw-r--r-- 1 yellowtent yellowtent    0 Nov 17  2009 try

</code></pre>
]]></description><link>https://forum.cloudron.io/post/34434</link><guid isPermaLink="true">https://forum.cloudron.io/post/34434</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 27 Jul 2021 20:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to Restoring file timestamps from backup &#x2F; migration on Fri, 23 Jul 2021 19:03:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Yes, it's also a file server for us.</p>
]]></description><link>https://forum.cloudron.io/post/34303</link><guid isPermaLink="true">https://forum.cloudron.io/post/34303</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Fri, 23 Jul 2021 19:03:58 GMT</pubDate></item><item><title><![CDATA[Reply to Restoring file timestamps from backup &#x2F; migration on Fri, 23 Jul 2021 18:14:34 GMT]]></title><description><![CDATA[<p dir="auto">Generally, web apps don't care about filesystem timestamps. Is this because of surfer showing the filesystem timestamps?</p>
]]></description><link>https://forum.cloudron.io/post/34299</link><guid isPermaLink="true">https://forum.cloudron.io/post/34299</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 23 Jul 2021 18:14:34 GMT</pubDate></item></channel></rss>