Need Help Backing Up Two Specific Folders with Restic (Without Root Access)

Hi all,

I’m looking for advice from experienced Restic users.

I’ve been using Restic for a couple of months now, and it’s been working well for backing up my /home/user directory.

Now I have a new folder located at the root level: /DATA (CasaOS). I need to include it in my backups as well, but I can’t change its location. I do have read access to it, though.

Is there a clean way to tell Restic to back up only /home/user and /DATA, and nothing else?

I tried backing up / with a long list of --exclude rules, but I keep running into permission errors like:

readdirnames permission denied

I also found this discussion about using mounts and symlinks, but as pointed, the mount solution requires root privileges for the backup script, which I don’t have.

Yes! When running restic backup , supply both directories as arguments. Backup can handle several directories. See Manual — restic 0.18.0-dev documentation .

1 Like

I feel dumb ! I am using resticker and the README said that :

  • RESTIC_BACKUP_SOURCES - Source directory to backup. Make sure to mount this into the container as a volume (see the example configs). Default /data

So I assumed that it was only one.

Thank you !

1 Like