You are not logged in.

#1 2022-10-10 05:22:01

questionask
Member
Registered: 2021-01-09
Posts: 74

[SOLVED] borg create: error: argument ARCHIVE: Invalid location format

I'm using the borg backup script from https://borgbackup.readthedocs.io/en/1. … ng-backups

It used to work, but now I get the error:

borg create: error: argument ARCHIVE: Invalid location format: "::host-2022-10-10T07:12:41"

According to https://github.com/borgbackup/borg/issues/4629, the line

    ::'{hostname}-{now}'            \

might cause the problem.

How do I fix this?

Last edited by questionask (2022-10-10 17:02:45)

Offline

#2 2022-10-10 06:51:08

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: [SOLVED] borg create: error: argument ARCHIVE: Invalid location format

Did you try the suggestions from the github issue? Especially related to the declaration of

BORG_REPO

I am using

::'{hostname}-{now}'            \

in my backup scripts as well without any problems.

Offline

#3 2022-10-10 07:12:56

questionask
Member
Registered: 2021-01-09
Posts: 74

Re: [SOLVED] borg create: error: argument ARCHIVE: Invalid location format

I'm not sure how to adapt that (ssh) to my situation because I'm doing a backup to an external hard disk drive:

export BORG_REPO=/run/media/username/backup-RAID1/reponame

Offline

#4 2022-10-10 11:29:46

waitnsea
Member
From: France
Registered: 2013-02-10
Posts: 60

Re: [SOLVED] borg create: error: argument ARCHIVE: Invalid location format

questionask wrote:

I'm not sure how to adapt that (ssh) to my situation because I'm doing a backup to an external hard disk drive:

export BORG_REPO=/run/media/username/backup-RAID1/reponame

Hi,
In my own script I simple-quoted the path :

export  REPOSITORY='/home/user/BACKUP/user_bkp' 

without problem

Offline

#5 2022-10-10 17:02:32

questionask
Member
Registered: 2021-01-09
Posts: 74

Re: [SOLVED] borg create: error: argument ARCHIVE: Invalid location format

Thanks. Simple-quoting the path solved my problem.

Offline

Board footer

Powered by FluxBB