Q: What is the best way to backup & restore my XigmaNAS system partition?
A: Using DD is a quick and relatively simple way to backup and restore your data. DD is a very powerful tool, for reference you should take a look at powerofdd.pdf (thanks to Dan Merschi) and ensure you understand what is happening before disaster strikes.
Always make sure you know which device you are copying from/to. If you make a mistake you could erase valuable data.
To create a backup image of your partition:
1 - If your system disk(HDD) is ad0 and you have a volume mounted on /mnt/share you can use DD to create an image of the system partition on your storage volume as follows:
dd if=/dev/ad0s1 of=/mnt/share/partition_backup.dd bs=16k
The extension is not important, you should use one just so you know that the image was created using DD .
2 - If the system is instaled on USB/CF/Flash drive the command should be:
dd if=/dev/da0 of=/mnt/share/partition_backup.dd bs=16k
To restore your partition from a backup image:
For command #1, above:
dd if=/mnt/share/partition_backup.dd of=/dev/ad0s1 bs=16k
For command #2, above:
dd if=/mnt/share/partition_backup.dd of=/dev/da0 bs=16k
|Basic||Data recovery and backups||⇒184.108.40.206|