backup network conections

Asked by otro_claudio

Is there any way to backup the network conections created in the network manager.
I have a few wireless, a couple of lan, and one pppoe.
I'm using ubuntu 9, and gnome.

I search a lot over the net but found nothing.
Best regards,

Claudio

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Steven Danna
Solved:
Last query:
Last reply:
Revision history for this message
Ian Ace (iaculallad) said :
#1

What about copying your /etc/network/interfaces file to another location?

sudo cp /etc/network/interfaces /new_/location_/here

Regards,

Ian

Revision history for this message
otro_claudio (telobuscaste) said :
#2

The interfaces file only have two lines:

auto lo
iface lo inet loopback

Any other ideas?

Revision history for this message
Best Steven Danna (ssd7) said :
#3

I'm pretty sure that NetworkManager connections information is all stored in gconf. You should be able to back it all up using the following command at the terminal

gconftool-2 --dump /system/networking/connections > connectionsbackup.xml

This will create an xml file with all the connection information. To restore the settings then you would just do the following.

gconftool-2 --load connectionsbackup.xml

However, I don't think this will backup any saved network keys. Those will likely have to be backup up separately if possible.

Revision history for this message
otro_claudio (telobuscaste) said :
#4

Steven:
Your instructions lead me to my user folder and the subfolder .gconf contained in it. There was tha files i was looking for.
And the command line you wrote created the buckup file.
Now i'm going to reinstall ubuntu form the beginning.

Thanks a lot

Claudio

Revision history for this message
otro_claudio (telobuscaste) said :
#5

Thanks Steven Danna, that solved my question.

Revision history for this message
otro_claudio (telobuscaste) said :
#6

Hi:

After format I can't restore the network connections.
I copied connectionsbackup.xml into .gconf/system and I used gconftool-2 --load connectionsbackup.xml from that folder, but nothing happened, so I reenter the settings manually from the files I saved before.

Best regards and thaks again

Claudio