Migrate TM backus from Synology to TrueNAS Scale ElectricEel

Update:
I added --no-perms at the end of the rsync command and it is transferring…
so will see if this works…


I have a Synology NAS that has timemachine backups on it…
Goal - restore all previous TM Backups from Synolgy to the TrueNAS Basic TM share.
TrueNAS - ElectricEel-24.10.2
TimeMachine = TM
Basic TimeMachine Share - TM-Share
Generic Share - Gen-Share

Gen-Share created and rsync’d all the TM backups to Gen-Share.

Testing

  • created a Basic TM (TM-Share)
  • successful TM Backup from Mac
  • rsync different machine TM backup via rsync from Gen-Share to TM-Share
  • running rsync as root, the rsync fails restoring to Gen-Share
    Error
    sync: [generator] failed to set permissions on
    “/mnt/dozer/backups/time/mac.sparsebundle/bands”: Operation not permitted (1)

Looking for best practises.
I also tried applying Basic TM permissions to the Gen-Share but that also failed.
Decent at CLI

Thanks…

You should set proper ACL on TrueNAS and then rsync excluding permissions. Synology also may store metadata and alternate datastreams in an on-disk format incompatible with TrueNAS and so you may have to do this through the SMB protocol rather than rsync.

1 Like

Both jobs from 2 different machines to 2 different Basic TM share erased the old backups but did complete successfully.
I use rsync with a --partial since it can resume if the connection breaks.
Will continue to test… .

What do you mean that they erased the backups? It sounds like maybe your rsync task was unsuccessful then.

TM said it could not use the existing backup so it erased and did a new one…successfully.
I have used rsync for years but… I will try your suggestion…

TM sparsebundles are notoriously fussy from what I can recall especially when communicating over a network share.

1 Like

Update - One TM Backup restore worked successfully.
Steps

  • rsync -avz --partial user@synology:/volume1/timeshare/mac.sparsebundle --no-perms .
  • Stopped and started SMB on TrueNAS
  • Connected to the TM share (TrueNAS) via TM
  • Verified the (restored) TM Backup
  • TM reported over 6k changes
  • Kicked off a new TM back
  • TM Backup completed successfully in a very short time.

This was a TM Backup of less than 1 TB.
Next step is to restore a TM Backup of about 2 TB

1 Like

Update 2:
The large 2TB finally mounted… for some reason it was labeled
“.backbundle” and not “.sparsebundle”
the TM Share would not mount

  • renamed the .backupbundle to.back
  • share mounted
  • ran a test TM backup - once it started and started writing files I canceled it
    and removed the directory.
  • renamed 2TB to .sparsebundle
  • verified - took a while but was successful
  • kicked off a TM backup (using the 2TB TM backup file)
  • after a few hours, backup completed successfully