Front page

Obnam error finding the config file

defd4ec69f7249f7a67e3070d6284a68
TACTICS WYOMING DRIFTER

From: Ton Boelens <ton.boelens@gmail.com>
Date: Sun, 01 May 2016 07:26:38 +0000

   Hi Lars,
   
   I get an error that Obnam cannot find my config file:
   
   obnam@gina:~$ cat ~/.config/obnam/obnam_usbdisk.conf
   [config]
   repository = sftp://xx.yy.zz.zz:port/media/usbdisk/backups/
   log = /home/obnam/obnam_usbdisk.log
   ssh-key = /home/obnam/.ssh/tb-pi-backup
   strict-ssh-host-keys = yes
   ssh-known-hosts = /home/obnam/.ssh/known_hosts
   pure-paramiko = False
   
   root = /media/usb0/backups/
   exclude = /media/usb0/backups/zip-file/,
           /media/usb0/backups/minecraft/
   
   
   This is the error I get:
   
   obnam@gina:~$ obnam backup --config=obnam_usbdisk.conf
   CRITICAL:root:Traceback (most recent call last):
     File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 178, in _run
       self.settings.load_configs()
     File "/usr/lib/python2.7/dist-packages/cliapp/settings.py", line 815, in
   load_configs
       f = open_file(pathname)
   IOError: [Errno 2] No such file or directory: 'obnam_usbdisk.conf'
   
   ERROR: [Errno 2] No such file or directory: 'obnam_usbdisk.conf'
   
   Can you please help me?
   
   Cheers,
   
   Ton
From: Paul Waring <paul@xk7.net>
Date: Sun, 1 May 2016 09:31:29 +0100

   On Sun, May 01, 2016 at 07:26:38AM +0000, Ton Boelens wrote:
   >    I get an error that Obnam cannot find my config file:
   >    obnam@gina:~$ cat ~/.config/obnam/obnam_usbdisk.conf
   >    [config]
   >    repository = sftp://xx.yy.zz.zz:port/media/usbdisk/backups/
   >    log = /home/obnam/obnam_usbdisk.log
   >    ssh-key = /home/obnam/.ssh/tb-pi-backup
   >    strict-ssh-host-keys = yes
   >    ssh-known-hosts = /home/obnam/.ssh/known_hosts
   >    pure-paramiko = False
   >    root = /media/usb0/backups/
   >    exclude = /media/usb0/backups/zip-file/,
   >    A  A  A  A  /media/usb0/backups/minecraft/
   >    This is the error I get:
   >    obnam@gina:~$ obnam backup --config=obnam_usbdisk.conf
   
   You shouldn't need to use --config if your file is in ~/.config/obnam
   and has a filename ending in .conf, as Obnam will load that anyway.
   
   If you want to use your obnam_usbdisk.conf file and no other
   configuration I think you need to provide the full path and disable the
   default configuration searching:
   
   obnam backup --no-default-config --config
   ~/.config/obnam/obnam_usbdisk.conf
   
   Does that work?
From: Jan Niggemann <jn@hz6.de>
Date: Sun, 01 May 2016 10:31:46 +0200

   You have to use the full path of the config file in the option, else it is looked for in the current directory, where it can't be found...
   
   Jan
   
   Am 1. Mai 2016 09:26:38 MESZ, schrieb Ton Boelens <ton.boelens@gmail.com>:
   >Hi Lars,
   >
   >I get an error that Obnam cannot find my config file:
   >
   >obnam@gina:~$ cat ~/.config/obnam/obnam_usbdisk.conf
   >[config]
   >repository = sftp://xx.yy.zz.zz:port/media/usbdisk/backups/
   >log = /home/obnam/obnam_usbdisk.log
   >ssh-key = /home/obnam/.ssh/tb-pi-backup
   >strict-ssh-host-keys = yes
   >ssh-known-hosts = /home/obnam/.ssh/known_hosts
   >pure-paramiko = False
   >
   >root = /media/usb0/backups/
   >exclude = /media/usb0/backups/zip-file/,
   >        /media/usb0/backups/minecraft/
   >
   >
   >This is the error I get:
   >
   >obnam@gina:~$ obnam backup --config=obnam_usbdisk.conf
   >CRITICAL:root:Traceback (most recent call last):
   >File "/usr/lib/python2.7/dist-packages/cliapp/app.py", line 178, in
   >_run
   >    self.settings.load_configs()
   >File "/usr/lib/python2.7/dist-packages/cliapp/settings.py", line 815,
   >in
   >load_configs
   >    f = open_file(pathname)
   >IOError: [Errno 2] No such file or directory: 'obnam_usbdisk.conf'
   >
   >ERROR: [Errno 2] No such file or directory: 'obnam_usbdisk.conf'
   >
   >Can you please help me?
   >
   >Cheers,
   >
   >Ton
   >
   >
   >------------------------------------------------------------------------
   >
   >_______________________________________________
   >obnam-support mailing list
   >obnam-support@obnam.org
   >http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org