Leaving Synology or QNAP
How to move from a Synology or QNAP NAS to an OSM server: the files, the people and their permissions, remote access, photos, synced folders and backups. The old NAS stays as it is until the day you switch: OSM only reads it.
| On the old NAS | On OSM |
|---|---|
| Shared folders | Copy from another server, into shared folders here (below) |
| Users, groups and permissions | Accounts and groups made here, and each shared folder's permissions set again (below) |
| Synology's QuickConnect, QNAP's myQNAPcloud Link | OSM Connect (below) |
| Synology Photos, QNAP's QuMagie | Immich, from the App Catalog (below) |
| Synology Drive, QNAP's Qsync | Nextcloud, or Desktop Sync with Syncthing (below) |
| Hyper Backup, QNAP's Hybrid Backup Sync | OSM's Backup tasks (below) |
What does not come over: passwords (no server gives them away), the old NAS's own apps and settings, and the versions kept by its backups. Plan for those as the steps say.
Before you start
- Install OSM on the new server (Quickstart, or the Installation guide). Give it disks of its own: OSM erases the disks it installs on, so do not move the old NAS's disks into it. The files come over the network.
- Make the volume big enough for everything you copy, with room to grow (Storage). Choose Btrfs if you want snapshots and earlier versions of files, as you may have had on the old NAS.
- Keep both on the same network, on cables if you can: a copy of several terabytes takes hours, or days.
- Install SMB in Settings > File Protocols, so that computers reach the new shared folders.
1. The people first
Passwords cannot be copied from any server, so each person gets an account here with a new password:
- Settings > Users and Groups: Create each account, or Import many at once from a CSV file (a preview shows what can be made, and why not) (Accounts).
- Make the groups you had (Family, Office, Accounts...) and put the people in them. A group's permission on a shared folder is the simple way to manage many people.
An office that had its NAS joined to a Windows domain can join OSM to the same domain, with OSM Pro or OSM Business (Directory services), or make OSM the domain controller itself, with OSM Business (Domain).
2. The shared folders
Settings > Shared Folders > Copy from another server... copies the old NAS's shared folders into shared folders here, in the background (Shared folders):
- The old server: Windows file sharing (SMB), the NAS's name or address, and an account that may read every folder you want to copy (an administrator's, on the old NAS).
- What to copy, and where: tick the folders; each goes into a new shared folder (named like the old one; you can change the name) or into one you have.
- Who may use them: the permission of every account and group on each new shared folder: Read/Write, Read only or No access. The old NAS's permissions are not copied: a shared folder's permissions here apply to everything it receives.
- Start copying. Copies from other servers, below the list, shows how far it is; OSM tells you when it is done, and Report... lists any file it could not copy, and why.
A copy never deletes anything here, and never replaces a file that is newer here. Files keep their dates. The old NAS's recycle bins (#recycle, @Recycle), snapshots (#snapshot, @Recently-Snapshot) and thumbnail folders (@eaDir, .@__thumb) are left out. Copy what changed copies only what is new or changed since: run it as often as you like until the day you switch.
Home folders. Each person's home folder is private, but a copy takes a whole folder of the old NAS: its homes folder, copied, would put everyone's home in one shared folder here. Copy it only as a safe copy of everything, into a shared folder that only Administrators may open (in Who may use them, give nobody else access). Each person then moves their own files into their Home here, from a computer: their home on the old NAS on one side, their home here on the other (Upload in Files, or over SMB as \\nas.local\<name> when home folders are on a volume: Home folders).
3. Remote access: OSM Connect
OSM Connect gives the server an address of its own on the internet, with nothing to open on your router, as Synology's QuickConnect and QNAP's myQNAPcloud Link do. The connection is encrypted from the browser to your server: OSM's relay passes it on without being able to read it.
- Make an OSM account at account.osm-os.com, and turn on two-step sign-in for your own account on the server (My Account).
- Settings > Remote access > OSM Connect > Turn on..., on the server's own network, and confirm the server with its pair code in your OSM account (OSM Connect).
- Open the new address on your phone with the QR code beside it.
Through OSM Connect, only Administrators may sign in until you allow more accounts, and everyone needs their second factor every time. Every OSM account has a free plan; the plans with more servers and speed are on the pricing page.
4. Photos: Immich
Immich keeps the family's photos and videos, with phone apps that upload new ones by themselves. Install it from the App Catalog: OSM makes an account in it for each person (Apps).
Photos come into the library of the person who brings them in, so each person brings in their own:
- Find the photos. Synology Photos keeps each person's photos in their home folder, in
Photos, and the shared ones in the shared folderphoto; QuMagie, in the folders you chose for it. - Make an archive of them (a .zip, .tgz or .tar file): on a computer, or here once they are copied over (step 2), in Files: select the folders, then Compress to zip.... An archive takes about as much room as the photos in it: for a big library, make several, a folder or a year at a time.
- In My Account > Your apps: Bring your old photos beside Immich, then the archive (on the server, or From this computer..., which uploads it into your home folder first). Each photo and video is added to your library with its date; a folder in the archive becomes an album of yours (but not folders named for a year or a date); a photo you have already is left out (Bringing your old data). This brings them into your own library: each person does it in their own My Account.
- On your phone: Your phone beside Immich, in the same place, gives the app to install, the address and your sign-in. Turn on the app's backup, and new photos go to your server.
5. Synced folders: Nextcloud or Syncthing
Synology Drive's My Drive is each person's home folder, and its team folders are shared folders: copy them over first (step 2, and its home folders). QNAP's Qsync keeps its files in a hidden .Qsync folder of each person's home (Hidden files, in Files' views, shows it). Then choose:
- Nextcloud, for files on phones and computers and in the browser, and sharing them with links. In My Account > Your apps, Bring your old files beside Nextcloud copies a folder of yours on the server into your own Nextcloud files, under Brought in; Your phone beside it, then Set up the app on the phone, sets up Nextcloud's phone app. Nextcloud's desktop app syncs computers.
- Desktop Sync, with Syncthing from the App Catalog, for computers that keep folders in step with the server without a cloud: the server keeps the earlier versions of what they change or delete (Desktop Sync).
For files that people only open over the network, the shared folders of step 2 are all you need.
6. Backups
OSM's Backup makes its own backups, with restic: it does not read the backups that Hyper Backup or Hybrid Backup Sync made. Keep those, and the old NAS or the drive they are on, until OSM's backups have covered the time you would want to go back to.
- Backup > Backups > Create: the shared folders and home folders, The server's settings and accounts and The apps' data, to a USB drive, another server over SFTP, an S3-compatible store or a restic REST server (Backup and recovery).
- Choose when, and how many versions stay, and give the task a password you keep somewhere else.
Every month, OSM restores a sample of each backup into a scratch folder and compares it with the files on the server, and on the 1st it sends a report of every task (Backups that prove themselves). If the old NAS backed up your PCs (with Synology's Active Backup for Business, for one), Backup > Computers > PCs and servers does that here (PCs and servers).
The day you switch
- Tell everyone, and stop changes on the old NAS (make its shared folders read only, for example).
- Run Copy what changed one last time, and check its Report....
- Point the computers at the new server: its name or address in File Explorer or Finder, Time Machine to a shared folder here, mapped drives again (Files).
- Keep the old NAS, off or read only, for a few weeks, until you are sure nothing is missing.