Improving Backup Performance? (Win 11)

I’m using restic 0.18.0 with backrest, on Windows 11. Backing up from an SSD to a mounted SMB share on my NAS. It’s going very slowly. I have already added restic to the windows defender exclusion list.

Looking at the CPU usage it’s basically non-existent so that’s not the bottleneck. Disk usage seems very…intermittent? What’s going on in between there? Is there anything I could do to speed things up?

Thanks!

Have you considered running rest-server on the NAS and send/store your repository on that, or using SFTP, instead of SMB?

@qusma, welcome on the restic forum.

  1. what is “very slowly?” how much size is your repository growing per hour?

  2. which NAS do you have?

  3. can you share the network transfer speed between computer and NAS?

  4. did you analyze the resource usage on your NAS? for example I have an older NAS with gbit connection which can only do 30-40MByte/sec over SMB.

Those graphs look a lot like the NAS taking a very long time to actually confirm that files have been safely stored on disk. Restic waits for that confirmation to make sure that no data is lost if a backup is interrupted unexpectedly.

I’d expect that increasing the pack size to the maximum of 128, using --pack-size 128 might help with performance. Note that you’ll have to pass that flag to every invocation of restic. (Or just set the environment variable RESTIC_PACK_SIZE).