Welcome to the IPFire Wiki

This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!

Looking for something?

Use the search and find answers to everything about IPFire. If you cannot find what you are looking for, join our community and talk to fellow IPFire users, developers and everybody else involved in the project.

IPFire Community

Differences in Revisions: Architecture Change

»
adding some info for backup and restore data between architecture change.
# Architecture Change
 
You can restore a backup created on a system with a different architecture. However, you will have to delete the graph databases which are architecture-dependent and need to be recreated.
You can restore a backup created on a system with a different architecture. However the graph databases which are architecture-dependent so they won't be readable and writable from the newer one.
You have two options.
 
Do so by executing the following commands after restoring the backup:
**After install and restore of the backup** you can delete the old database, executing the following commands:
 
```text
/etc/init.d/collectd stop
/etc/init.d/vnstat stop
rm -rf /var/log/rrd/*
rm -f /var/log/vnstat/*
/etc/init.d/collectd start
/etc/init.d/vnstat start
```
 
Otherwise you can dump the databases into files, therefore restore them into new install.
 
On old system, before create a backup, dump the data into files.
 
```text
rrdtool dump /var/log/rrd/hddshutdown-sd*.rrd /hddshutdown-sd*.xml
rrdtool dump /var/log/rrd/hddtemp-sd*.rrd /hddtemp-sd*.xml
```
and do it for all the .rrd files contained into ```/var/log/rrd/*.rrd```
 
Do a backup, save the resulting file.
Install the new architecture, restore the backup, then import data
 
```text
rrdtool restore /hddshutdown-sd*.xml /var/log/rrd/hddshutdown-sd*.rrd
rrdtool restore /hddtemp-sd*.xml /var/log/rrd/hddtemp-sd*.rrd
```