repo=/mnt/mybackupdrive/somefolder
restic init -r $repo
restic backup /my/files -r $repo
restic mount /mnt/backedup -r $repo
cp -r /mnt/backedup/snapshots/latest/accidentally-removed-directory ~/restored
Where the repository can also be sftp or various other things.There are a ton of other commands and options, but to literally just get started, this is all you need for making and restoring data from a backup.