KenKundert / emborg

Interactive command line interface to Borg Backup
GNU General Public License v3.0
94 stars 8 forks source link

"Previously Located Error" with custom SSH port #27

Closed Snooper125 closed 4 years ago

Snooper125 commented 4 years ago

CREATE BACKUP WITH PORT 2222 WITH BORG borg --verbose init --encryption=none test sudo borg create --list --show-rc --verbose --progress --stats --comment "Backup Now." ssh://server@mydomain.com:2222/test::Backup-{now:%Y-%m-%dT%H:%M:%S.%f} /home/test

INFO ON BACKUP USING EMBORG OR ANY COMMAND Note:Using ssh_command = "ssh -p 2222" emborg info

Warning: The repository at location ssh://server@mydomain.com/test was previously located at ssh://server@mydomain.com:2222/test Do you want to continue? [yN] Aborting. Repository access aborted

The Emborg Repository location won't include the port and borg will see it as a different location.

I tried: export BORG_RELOCATED_REPO_ACCESS_IS_OK=no

with limited success and would prefer not to if there is a better option.

KenKundert commented 4 years ago

Did you look at the emborg log file and see if the BORG_RSH environment variable is set properly.

This issue does not come up for me even though I use odd SSH ports because I create an entry in my ssh config file for the host that includes the port and any other thing I need. Then I just use a simple host name in emborg. You might want to try that.

Snooper125 commented 4 years ago

Hello Ken,

Thanks for response.

My BORG_RSH was not passing to SUDO properly.

Thanks, Darrell


From: Ken Kundert notifications@github.com Sent: Friday, January 31, 2020 4:34 PM To: KenKundert/emborg emborg@noreply.github.com Cc: Snooper125 dbusalacchi@hotmail.com; Author author@noreply.github.com Subject: Re: [KenKundert/emborg] "Previously Located Error" with custom SSH port (#27)

Did you look at the emborg log file and see if the BORG_RSH environment variable is set properly.

This issue does not come up for me even though I use odd SSH ports because I create an entry in my ssh config file for the host that includes the port and any other thing I need. Then I just use a simple host name in emborg. You might want to try that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/KenKundert/emborg/issues/27?email_source=notifications&email_token=ANGGUIOGDUOJODH5YBLSGP3RASRQHA5CNFSM4KOBR6QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKQHIUQ#issuecomment-580940882, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANGGUIJ6FCKKGMDJ7D662B3RASRQHANCNFSM4KOBR6QA.