Skip to content
Contact us

Reverse Migration: files back from Nextcloud to SharePoint Online or a file share

Edition

Reverse Migration comes with an Enterprise+ licence. With Professional or Enterprise it is greyed out in the job dialog, and a job that has it ticked runs without it. See Editions: Professional, Enterprise and Enterprise+

Give .url links their files back

A .url link left by an Enhanced Migration still holds the item's version history, metadata and permissions in SharePoint. A reverse migration puts the file's content from Nextcloud back in it and adds the versions made in Nextcloud.

Reverse a migration

The files changed or created in Nextcloud go back to SharePoint Online or the file share they came from; files not changed are not touched.

Back after a DORA emergency

While Microsoft 365 or the file server was unavailable, people worked on the copy in Nextcloud. When the source is back, one run copies every changed and new file back.

New versions and new files

A changed file's new versions are added to its version history in SharePoint Online, or it is overwritten on a file share; files created in Nextcloud are copied to the source.

Reverse Migration is one switch with three uses. They differ in why the files go back, not in what a Reverse Migration run does.

For an emergency or a one-time return, not for everyday production

A Reverse Migration run is slow, and it is not designed to keep SharePoint Online or a file share and Nextcloud in sync. Use it once, when files must go back — after an emergency, or to reverse a migration — and work in one place at a time.

An Enhanced Migration replaces each migrated SharePoint file with a .url link to its copy in Nextcloud. Only the content is replaced: the item keeps its version history, metadata and permissions in SharePoint. A reverse migration fills each link again:

  • with the file's content from Nextcloud;
  • with every version added in Nextcloud since the migration, added to the item's version history.

The item's version history, metadata and permissions are kept as they are in SharePoint; they are not copied from Nextcloud. Users find the file where the link was, under the same name and with the same history. See Why replace SharePoint files with .url links

A migration to Nextcloud can be undone, job by job, with everything done in Nextcloud since the migration. See Reversing a migration.

Bring the work back after a DORA emergency

Section titled “Bring the work back after a DORA emergency”

While Microsoft 365 or the file server is out of reach, people work on the resilience copy in Nextcloud; when the source is back, one Reverse Migration run puts their work there. See After a DORA emergency: bring the work back.

Reverse Migration is a switch on a Migration job — or a Test Migration job, to see first what it would change — on the Action step of the job dialog, under Mode, shown with Advanced Settings on. With it on, the job's runs read the job's Nextcloud folder — its Nextcloud Team Folder or its Destination User's files — and write back to its source: the SharePoint Online library in Source URL, or the file share in Source UNC. It uses the job's source and Nextcloud folder as they are, so the job that migrated a library can copy it back.

It is not a migration mode of its own: it only brings the job's files back to where they came from, and it is incremental — only the files created or changed in Nextcloud are touched. Files changed in Nextcloud add their new versions to the source's version history, and files created in Nextcloud are created there. The .url links are the exception: every .url link SMART Redirect made is filled again with its file's content, including every version added in Nextcloud since the migration, whether the file was changed there or not. On a file share, which keeps no version history and has no .url links, the changed files are copied back over the ones there.

While Reverse Migration is on, the run ignores these settings of the job:

  • Include Version History: always on, with Version History Scope *:*:*.
  • Rules for adding and overwriting files: always Add New Overwrite Existing By Newer.
  • From Size and To Size: not used.
  • SMART Redirect: not used; the .url links are filled again.

The job's own values are not changed. Switching Reverse Migration on lists, in one message, the settings whose values are ignored. While it is on, the job dialog locks those fields with a yellow note under each, and SMART Migration is sent the values above. The job's values apply again when it is switched off.

What is in NextcloudWhat a Reverse Migration run does at the source
A file migrated with SMART RedirectThe .url link gets the file's content and the versions added in Nextcloud. Its version history, metadata and permissions in SharePoint are kept.
A file migrated without the .url link, and changed in NextcloudThe original file in SharePoint keeps its version history, metadata and permissions, and the versions added in Nextcloud are added to it.
A file created in the Nextcloud folderThe file is copied to the source, into the folder it sits in.
A file share's file changed in NextcloudThe file on the file share is overwritten with the latest version from Nextcloud.

An Enhanced Migration replaces each migrated SharePoint file with a .url file — MyDocument.docx.url in place of MyDocument.docx — that opens the file in Nextcloud. The item keeps its version history, metadata and permissions in SharePoint. A reverse migration copies the file's content and the versions added in Nextcloud into the item; what the item already holds is kept, not copied from Nextcloud. Every .url link is filled again, whether the file was changed in Nextcloud or not.

Files changed in Nextcloud get their new versions

Section titled “Files changed in Nextcloud get their new versions”

A file migrated without the .url link is still whole in SharePoint. When it has been changed in Nextcloud since, the Reverse Migration run adds the versions created in Nextcloud to the file's own version history in SharePoint, and keeps its original metadata and permissions. Nothing of the history on either side is lost.

A file created in the job's Nextcloud folder after the migration has no file in the source. The Reverse Migration run copies it there, into the folder that matches the one it sits in in Nextcloud.

Read more: Cutover: Traditional and Enhanced Migration · Version history

The switch shows only where a Reverse Migration can run. It needs all of these:

  • Mode is Migration, or Test Migration to see first what a Reverse Migration would change — not Discovery.
  • Source Type is SharePoint Library with a SharePoint Online address (https://<tenant>.sharepoint.com/…), or FileShare.
  • Destination Type is Team Folder or User: the files come back from Nextcloud.
  • The job is a job of its own, not an Import job.

SharePoint on-premises (SharePoint Server), OneDrive, File List CSV and Dynamic BI data query sources cannot be the target of a Reverse Migration. Copying files back to SharePoint on-premises runs from the SMART Migration IDE — ask your partner — and only new files come back in full: a file changed in Nextcloud can be copied back too, but loses all its metadata and permissions. Reverse Migration for SharePoint Server Subscription Edition is on the roadmap.

Switching Advanced Settings off hides Reverse Migration and its explanation, but a ticked Reverse Migration still acts: the list under the toggle names it among the hidden settings.

Hidden by the mode or the source, it never acts

Switching the mode or the source hides Reverse Migration without clearing it, like every hidden setting in the job dialog. SMART Migration is told to run a Reverse Migration only while the job is a Migration or Test Migration job of a kind that allows it: a job switched to Discovery, or to a source Reverse Migration cannot write to, never copies files back.

A Test Migration with Reverse Migration on writes nothing to the source. It reads the job's Nextcloud folder and compares it with the source, and reports file by file what a Reverse Migration run would do: which files would get new versions, which .url links would be filled again, which new files would be copied, and on a file share which files would be overwritten. The files it checked count as Test Migration in the BI data, and the Dashboard's Test migrated figure counts them. Read the run in Run History and its files on the File Issues tab, then switch the job's Mode to Migration and set it to Ready to copy the files back for real.

Know what will change before it changes

A Reverse Migration writes into the source that people may already be working in again. The test shows how many files will change and which ones — before a single file in SharePoint Online or on the file share is touched.

No new job is needed: the job that migrated the files copies them back. It already has the source and the Nextcloud folder, and its Reverse Migration runs join its own Run History.

  1. Open the job that migrated the files

    On the Jobs tab, open the job — Edit in its row menu, or a double-click on its row.

  2. Tick Reverse Migration on the Action step

    Switch on Advanced Settings, go to the Action step, check that Mode is Migration — or Test Migration to see first what would change — and tick Reverse Migration — beside it, the mode's icon with its arrow turned back in red, as the job's row will show it. The dialog shows what a Reverse Migration run does for this source, and for a file share what it costs.

  3. Check the requirements

    For SharePoint Online, the App Registration used by the SMART Migration Server must have write permissions to the source library. For a file share, the account the SMART Migration Server runs as must be able to write to it.

  4. Save, and set it to Ready

    Save the job and set it to Ready. SMART Migration claims it like any other job, and the run appears in Run History.

  5. Untick Reverse Migration when the job should copy into Nextcloud again

    While Reverse Migration is on, every run of the job copies the files back. For a recurring job, untick it once the Reverse Migration run has finished, and the job's next run copies into Nextcloud again.

While Reverse Migration is on, the job's mode icon — beside its title on the Jobs tab, in its Mode column, on its card and on the Dashboard — turns its arrow round, pointing back to the source, in red, and the mode's pill in the Mode column and the Mode filter turns dark red. Its card and the job dialog's title show them the same way, and the card opens with a grey band saying that its runs copy the files back. A job with Reverse Migration on never looks like one that migrates.

To list them, set the Jobs tab's Mode filter to Migration + Reverse Migration (or Test Migration + Reverse Migration): only the jobs whose runs copy files back. Migration lists only the Migration jobs that migrate, so the two never mix; pick both to see every Migration job. A choice is offered only while some job has it.

Reverse Migration changes the status as a change of mode does

Section titled “Reverse Migration changes the status as a change of mode does”

Finished and the result belong to the runs of one mode, with Reverse Migration or without: a finished migration is not a finished Reverse Migration. Switch Reverse Migration on or off on a Finished job, leaving its status as it is, and the job is saved Hold. Switched back, a job still on Hold is Finished again when its latest run of that kind finished. A status you pick in the same save is kept as picked. See Job status

While Reverse Migration is on, SMART Redirect on the Source step is not used: a Reverse Migration run fills the .url links again rather than making new ones.

Stop editing before the last run

A Reverse Migration run copies what is in Nextcloud when it reads the file. When the source is to become the working copy again, ask users to stop editing in Nextcloud before the final Reverse Migration run — as at any cutover — so no change is left behind.

File shares: overwritten, and their own permissions lost

Section titled “File shares: overwritten, and their own permissions lost”

A file share keeps no version history, so a Reverse Migration run overwrites each file that was changed in Nextcloud with its latest version there, and copies the new files.

A file's own permissions are lost

An overwritten file takes the permissions of its folder on the file share: any permissions set on the file itself are lost. Find the files with permissions of their own before the run, and set them again afterwards. Permissions set on the folders stay as they are.

Read more: File shares to Nextcloud

After a DORA emergency: bring the work back

Section titled “After a DORA emergency: bring the work back”

A DORA setup keeps an independent copy of critical libraries in Nextcloud, refreshed by recurring, incremental jobs. During an emergency — Microsoft 365 or the file server unavailable — people open that copy in Nextcloud and carry on working: they change documents and create new ones. Without a way back, that work would stay in Nextcloud when the source returns, and the two would drift apart. Reverse Migration is that way back. It is supported for SharePoint Online and file shares; a resilience copy of SharePoint on-premises is one way only (Which sources a resilience copy can use).

Diagram: after the emergency, with SharePoint Online back, Reverse Migration is ticked on the recurring job. Its run reads only the files changed and created in Nextcloud during the emergency, and writes them back to SharePoint Online: new versions are added to each file's version history, new files are copied in, .url links are filled again, and metadata and permissions are kept. Then Reverse Migration is unticked, and the job keeps the copy again.

  1. Agree when the emergency ends

    Decide the moment people go back to the source, and ask them to stop editing the copy in Nextcloud then.

  2. Tick Reverse Migration on the DORA job

    Open the recurring job that keeps the copy, switch on Advanced Settings, tick Reverse Migration on the Action step, save it and set it to Ready. Its next run copies back instead of copying in: each changed file gets its new versions in SharePoint Online, or is overwritten on the file share, and each file created during the emergency is copied to the source.

  3. Check the run

    Read the run in Run History, and any files it could not copy back on the File Issues tab.

  4. Untick Reverse Migration

    Open the job again and untick Reverse Migration. The source is the working copy again, and the job's next nightly run brings the copy in Nextcloud in line with it.

Test it before you need it

A resilience plan should show that the way back works too. Run a Reverse Migration of a test library now and then — with a few files changed and created in Nextcloud — and keep the run in Run History as evidence of the test.

Read more: Digital Resilience Operation (DORA) · Incremental runs: only the files changed since the last run

A migration to Nextcloud is undone job by job: a Reverse Migration run per job copies the files of its Nextcloud folder back to its library or file share.

In NextcloudIn SharePoint Online after the runOn the file share after the run
A file changed since the migrationThe versions added in Nextcloud are added to the original file's version history; metadata and permissions are keptThe file is overwritten with its latest content from Nextcloud
A file whose source item is a .url linkThe link gets the file's content and the versions added in Nextcloud; its own version history, metadata and permissions are kept—
A file created in NextcloudCopied into the matching folder of the libraryCopied into the matching folder of the share
A file unchanged since the migrationLeft as it isLeft as it is

A Reverse Migration run is listed in Run History as a Migration run of its job, with its mode icon's arrow turned back in red and its mode's pill dark red, as on the job's row. Its card and its details' title show them the same way, and its card opens with a grey band saying it copied the files back. Set the Run History tab's Mode filter to Migration + Reverse Migration (or Test Migration + Reverse Migration) to list only the Reverse Migration runs; Migration lists only the runs that migrated. Its Configuration details — the job exactly as it was when the run claimed it — say "restore": "True".

The files it copied back count as Migration in the BI data, and the files a Test Migration with Reverse Migration on compared count as Test Migration: a Reverse Migration run counts as its mode. The Dashboard's Migrated and Test migrated figures count them with the others, each once, as SMART Migration reports them, and their cards open the Reverse Migration jobs and runs.

See also