[pass] Transfer password store to a server
Eregus
eregus at installgentoo.com
Wed Oct 14 17:59:50 CEST 2015
On 2015-10-14 17:40, Chris Warrick wrote:
> On 14 October 2015 at 17:25, Eregus <eregus at installgentoo.com> wrote:
>> On 2015-10-14 16:56, Chris Warrick wrote:
>>>
>>> If you want a backup without using `pass` on the server, you don’t
>>> have to do anything special. Just point your phone at the same remote.
>>
>>
>> What do you mean I don't have to do anything special? When I init a non-bare
>> git repository and add "denyCurrentBranch = ignore" to the config, I still
>> don't see any passwords after "pass git push origin master".
>
> Have you changed the remote?
>
> pass git remote rm origin
> pass git remote add origin me at myserver.com:path-to-your-new-repo
>
Yes. This is what I have done:
On server:
eregus at myserver:~$ rm -rf pass-store/
eregus at myserver:~$ mkdir pass-store
eregus at myserver:~$ cd pass-store/
eregus at myserver:~/pass-store$ git init
Initialized empty Git repository in /home/eregus/pass-store/.git/
eregus at myserver:~/pass-store$ git config --local
receive.denyCurrentBranch "ignore"
On desktop:
eregus at desktop:~% pass git remote rm origin
eregus at desktop:~% pass git remote add origin eregus at myserver.com:pass-store
eregus at desktop:~% pass git push origin master
Counting objects: 312, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (307/307), done.
Writing objects: 100% (312/312), 93.86 KiB | 0 bytes/s, done.
Total 312 (delta 113), reused 0 (delta 0)
To eregus at myserver.com:pass-store
* [new branch] master -> master
More information about the Password-Store
mailing list