I ran the restic init command on sftp backend and it said that repo successfully created and it even allows me to make backups and list snapshots but there is no folder with repo on remote server. How to fix this?
Client terminal:
~/test > cat hello.txt
Hello World
~/test > restic --repo sftp://user@ip:/home/user/test/foobar --password-file .pw init
created restic repository e2e96b1781 at sftp://user@ip:/home/user/test/foobar
Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is
irrecoverably lost.
~/test > restic --repo sftp://user@ip:/home/user/test/foobar --password-file .pw backup hello.txt
repository e2e96b17 opened (repository version 2) successfully, password is correct
created new cache in /home/user/.cache/restic
no parent snapshot found, will read all files
Files: 1 new, 0 changed, 0 unmodified
Dirs: 0 new, 0 changed, 0 unmodified
Added to the repository: 386 B (395 B stored)
processed 1 files, 12 B in 0:00
snapshot 14783cb8 saved
~/test > restic --repo sftp://user@ip:/home/user/test/foobar --password-file .pw snapshots
repository e2e96b17 opened (repository version 2) successfully, password is correct
ID Time Host Tags Paths
-----------------------------------------------------------------------------------
14783cb8 2024-01-16 23:52:03 hostname /home/user/test/hello.txt
-----------------------------------------------------------------------------------
1 snapshots
~/test > restic --repo sftp://user@ip:/home/user/test/foobar --password-file .pw init
Fatal: create repository at sftp://user@ip:/home/user/test/foobar failed: config file already exists
Server terminal:
user@de:~/test$ pwd
/home/user/test
user@de:~/test$ ls
user@de:~/test$