Humaid AlQassimi

< Go back

Resolving Permission Errors with Borg Mounts

Aug 16, 2020 · 1 min read

I use Borg to compress, encrypt, and deduplicate my backups, and it has been working really well. Recently, I was trying to retrieve some files and got the following error messages:

cp: cannot open '/path/to/borg/mount/file.txt' for reading: Permission denied

After reading documentation, the solution I found for this issue is to provide mount options to Borg, setting the permission of the files mounted.

borg mount -o uid=$UID,umask=077 /mnt/drive/borg::my-backup borg-mnt

This resolved the issues.

Would like to comment on the blog post? Feel free to start a discussion on my public general mailing list.

Articles from blogs I follow around the net

You can also read my newsfeed.

Cryptocurrency is an abject disaster

This post is long overdue. Let’s get it over with. 🛑 Hey! If you write a comment about this article online, disclose your stake in cryptocurrency. I will explain why later in this post. For my part, I held <$10,000 USD worth of Bitcoin prior to 201…

via Drew DeVault's blog April 26, 2021

Recommended read: Why Lichess will always be free

Signal-boosting this excellent article from Lichess: Why Lichess will always be free.

via Drew DeVault's blog April 23, 2021

Stallman isn't great, but not the devil

So Richard Stallman is back at the FSF, on the board of directors this time rather than as President. I’m not sure how significant this position is in the day-to-day operations, but I’m not sure if that’s really important. How anyone could have thought this …

via March 25, 2021

Generated by openring