You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a borgbackup.ini file with PATH entries:
...
PATH = /tmp/project
PATH = /tmp/project2
...
Create a backup
./borgctl backup ./borgbackup.ini
Expected behavior
elements in path are listed once
Actual behavior
elements in path are listed twice:
-+> BACKUP for 001 ...
-+> borg create -s -v --list -C zlib,6 ::tftp-201803162311170100 /BACKUP//tmp/project /BACKUP//tmp/project2 /BACKUP//tmp/project /BACKUP//tmp/project2
U /BACKUP/tmp/project/test1.txt
U /BACKUP/tmp/project/test2.txt
d /BACKUP/tmp/project
A /BACKUP/tmp/project2/test1.txt
A /BACKUP/tmp/project2/test2.txt
d /BACKUP/tmp/project2
U /BACKUP/tmp/project/test1.txt
U /BACKUP/tmp/project/test2.txt
d /BACKUP/tmp/project
U /BACKUP/tmp/project2/test1.txt
Probably the problem is in the BACKUPS[PATH${id}] contruction in help_init_from_ini():
In help_init_from_ini():
...
if [[ "$2" == "PATH" ]]; then
BACKUPS[PATH${id}]="${BACKUPS[PATH${id}]} ${3}"
fi
...
Since help_init_from_ini() is called multiple times (from docker_compare_host_container_script() and docker_set_borg_repo()), the BACKUPS[PATH${id}] is extended twice by the PATH arguments.
The text was updated successfully, but these errors were encountered:
jpellenz
changed the title
PATH listed double when created backup
PATH arguments listed twice when backup is created
Mar 16, 2018
Steps to reproduce:
Create a borgbackup.ini file with PATH entries:
...
PATH = /tmp/project
PATH = /tmp/project2
...
Create a backup
-+> BACKUP for 001 ...
-+> borg create -s -v --list -C zlib,6 ::tftp-201803162311170100 /BACKUP//tmp/project /BACKUP//tmp/project2 /BACKUP//tmp/project /BACKUP//tmp/project2
U /BACKUP/tmp/project/test1.txt
U /BACKUP/tmp/project/test2.txt
d /BACKUP/tmp/project
A /BACKUP/tmp/project2/test1.txt
A /BACKUP/tmp/project2/test2.txt
d /BACKUP/tmp/project2
U /BACKUP/tmp/project/test1.txt
U /BACKUP/tmp/project/test2.txt
d /BACKUP/tmp/project
U /BACKUP/tmp/project2/test1.txt
In help_init_from_ini():
Since help_init_from_ini() is called multiple times (from docker_compare_host_container_script() and docker_set_borg_repo()), the BACKUPS[PATH${id}] is extended twice by the PATH arguments.
The text was updated successfully, but these errors were encountered: