Safe method of passing repo password to scheduled task on Synology NAS

You may have worked it out, but for anyone else trying to run restic on a Synology NAS:

  1. Find your CPU architecture; start here https://www.synology.com/en-global/knowledgebase/DSM/tutorial/Compatibility_Peripherals/What_kind_of_CPU_does_my_NAS_have
    And then google which architecture your CPU uses (i386, AMD64, ARM, ARM64)
  2. Download the appropriate linux binary from https://github.com/restic/restic/releases/latest
  3. Unpack it in /usr/local/bin/ and symlink the binary to /usr/local/bin/restic
    (tar -xavf restic_0.9.5_linux_arm.bz2) (ln -s /usr/local/bin/restic /usr/local/bin/restic_0.9.5_linux_arm)
  4. You may have to set the correct permissions with chmod
  5. Before you run restic, you may have to specify the environment variable $TMPDIR since the default /tmp/ is too small (on my device).
  6. Now you can run restic by simply typing restic. Or via a scheduled task.
2 Likes