Hide pass for REST-Server

How to hide HTTP-password of REST-Server authentication from command line and process list?
From the documentation, using a rest server looks like this:
$ restic -r rest:https://user:pass@host:8000/my_backup_repo/
How to hide a pass from here?

You can always use the RESTIC_REPOSITORY environment variable instead of the -r option, or put the repository URL in a file which you reference using the --repository-file option or the RESTIC_REPOSITORY_FILE environment variable :+1:

2 Likes