Results 1 to 4 of 4

Thread: Backup and Restore XChat IRC Networks & Settings

  1. #1
    Join Date
    Mar 2010
    Beans
    17

    Lightbulb Backup and Restore XChat IRC Networks & Settings

    Question: Where does XChat store it's network list and custom settings?

    For some this may seem a relatively basic tutorial however I hope not only does it serve the obvious cause but also serves as an example for new users that often the easy answer is only a man page away as it was for me!

    I was posed with the need to restore various settings from my old Karmic installation to a fresh install of Lucid. The Karmic machine no longer booted and I did not want to simply copy the entire home directory to my shiny new Lucid install. One of the applications I did require my settings restored for was the XChat IRC client of which I had quite a number of custom networks and favorite channels and also custom settings (proxy, dcc save location etc).

    If you dont have XChat and want to find out what packages are available from the command line type:

    Code:
    apt-cache search xchat
    After mindless searching around the old partition for XChat configuration files, I consulted the XChat man pages:

    Code:
    man xchat
    Which gave me the argument I required to show the user config directory:

    Code:
    xchat -u --configdir
    This returned the line /home/%username%/.xchat2

    So I proceeded to call up that directory and take a look at the files therein:

    Code:
    ls /home/%username%/.xchat2
    The files I was interested were blatantly obvious:

    • servlist_.conf - A list of all the networks
    • xchat.conf - Custom user settings

    The main file I was interested in was the servlist_.conf file on my previous installation, so I backed up my new servlist_.conf file and proceeded to copy the old one with all my old network setting to my new XChat config directory:

    Code:
    mv servlist_conf servlist_conf.base
    cp /media/%oldpartition%/home/%username%/.xchat2/servlist_.conf servlist_.conf
    I then started up my XChat client and voila! My networks were there and those selected for auto connect, did so as I wished!

    Hope this helps someone...

    Cheers,

    cmuxed


    On a side note, I copied both the fresh servlist_.conf file and my old servlist_.conf file to my new Ubuntu One 'Backup' Sync folder and amended my 'conf file backup script' scheduled with cron to make a copy of the live servlist_.conf file on a regular basis so I will have it wherever I am, even if my hdd explodes. I am new to Ubuntu One and find it is great for automated incremental file system backups, important conf files, notes etc. I might post about it one day.
    Last edited by cmuxed; August 9th, 2010 at 01:58 PM.

  2. #2
    Join Date
    Sep 2010
    Location
    Kingdom of Bahrain.
    Beans
    3
    Distro
    Ubuntu

    Re: Backup and Restore XChat IRC Networks & Settings

    Thank you, this is what I was looking for!

  3. #3
    Join Date
    Aug 2009
    Beans
    10

    Re: Backup and Restore XChat IRC Networks & Settings

    ta :]

  4. #4
    Join Date
    Mar 2011
    Beans
    2

    Re: Backup and Restore XChat IRC Networks & Settings

    Thanks a lot, exactly what I was looking for

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •