<?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[Nextcloud restore issue with symlinked data directory]]></title><description><![CDATA[<p dir="auto">I'm trying to move Nextcloud to a new Cloudron server. On the original Cloudron server I made the data directory a symlink to another bigger disk:</p>
<pre><code>root@my:/home/yellowtent/appsdata/dc3a15ad-9993-4e5c-9039-46e73d048341# ls -Alh data
lrwxrwxrwx 1 root root 19 Oct 28  2018 data -&gt; /srv/nextcloud-data
</code></pre>
<p dir="auto">This symlink is now part of the backup, which breaks the restore on the new server:</p>
<pre><code>2022-09-28T19:14:39.287Z box:backupformat/rsync Recreating empty directories in {"localRoot":"/home/yellowtent/appsdata/dc3a15ad-9993-4e5c-9039-46e73d048341","layout":[]}
2022-09-28T19:14:39.290Z box:apptask run: app error for state pending_restore: BoxError: unable to symlink: EEXIST: file already exists, symlink '/srv/nextcloud-data' -&gt; '/home/yellowtent/appsdata/dc3a15ad-9993-4e5c-9039-46e73d048341/data'
    at restoreFsMetadata (/home/yellowtent/box/src/backupformat/rsync.js:152:33)
    at async Object.download (/home/yellowtent/box/src/backupformat/rsync.js:232:5)
    at async download (/home/yellowtent/box/src/backuptask.js:75:5)
    at async Object.downloadApp (/home/yellowtent/box/src/backuptask.js:110:5)
    at async install (/home/yellowtent/box/src/apptask.js:398:9) {
  reason: 'FileSystem Error',
  details: {}
}
</code></pre>
<p dir="auto">It looks like the <code>data/</code> directory gets created first and then while restoring it already exists.</p>
<p dir="auto">Any idea how I could restore this backup?</p>
<p dir="auto">(And yes, I'm aware that this symlink method isn't officially supported - It was the only way to achieve having an external storage back in 2018).</p>
]]></description><link>https://forum.cloudron.io/topic/7737/nextcloud-restore-issue-with-symlinked-data-directory</link><generator>RSS for Node</generator><lastBuildDate>Thu, 21 May 2026 05:29:55 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/7737.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Sep 2022 05:35:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nextcloud restore issue with symlinked data directory on Fri, 30 Sep 2022 10:16:21 GMT]]></title><description><![CDATA[<p dir="auto">Create a backup using rsync and restore from it <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=11345d81604" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> rsync does not store symlinks (as tgz does).</p>
]]></description><link>https://forum.cloudron.io/post/53943</link><guid isPermaLink="true">https://forum.cloudron.io/post/53943</guid><dc:creator><![CDATA[subven]]></dc:creator><pubDate>Fri, 30 Sep 2022 10:16:21 GMT</pubDate></item></channel></rss>