netinvent / npbackup

A secure and efficient file backup solution that fits both system administrators (CLI) and end users (GUI)
GNU General Public License v3.0
164 stars 5 forks source link

Can't change hostname #32

Closed andrewchen5678 closed 1 year ago

andrewchen5678 commented 1 year ago

I tried to make Machine identifier to b a hard coded value different than hostname but it is still backed up with the machine's hostname on windows.

I was backing up through restic's rest-server, not sure if it makes any difference.

deajan commented 1 year ago

Not sure what we're talking about. The machine identifier identity: machine_id is only used for prometheus metrics so far. It's restic itself that uses the %COMPUTERNAME% variable on Windows.

If you want the hostname to be changed in the restic backups, you'll need to pass --hostname "yourhost" to backup: additional_parameters.

andrewchen5678 commented 1 year ago

got it, I was confused about it. Thanks.