Hi. I’m trying to get started using the restic tool (v0.9.6). My goal is to do a full backup of my linux (lubuntu 18.04) partition to a local external USB NTFS hard drive.
I’m following the example here (https://restic.readthedocs.io/en/stable/080_examples.html#backing-up-your-system-without-running-restic-as-root) of “backing up your system without running restic as root”. So I’ve performed the chown, chmod, and setcap steps as outlined in the example.
I’m currently getting hung up when I try to init the repo on the external drive.
sudo -u restic ~restic/bin/restic init -r /mnt/backup/backup
I get the following error:
Fatal: create key in repository at /mnt/backup/backup failed: chmod /mnt/backup/backup/keys/b4954085f64adb61b4835276b207644550abd3ce71a144c02307eb1977159ad3: operation not permitted
It seems to be some kind of permissions problem, but I don’t know how to resolve it. By default, lubuntu was auto mounting the external drive. After some searching on the web, I tried to mount the external drive with the following options:
mount -t ntfs -o umask=000 /dev/sdb1 /mnt/backup
mount -t ntfs -o umask=000,allow_other /dev/sdb1 /mnt/backup
All of them give the same error.
If I init a directory in my home directory, that works okay. Can I copy the repository created in my home folder to the external drive and continue from there?