[Solved] Where is the command restore ?
-
Hi,
I'm lokking to the way to restore a dump file I've made with the command "dump"
But I'm not abble to find it…Which package should I install to acces to this command ?
Thanks.
-
Do you have a .xml file as your backup file?
If so, head to Diagnostics -> Backup/ Restore
-
Hi,
Thanks.
Lol… No I'm not looking for the backup/restore command of the Gui, but for dump/restore command from the shell.The Backup/Restore fonction of the Webgui is sometimes not enough to back to a "healthy" system.
Sometimes system files are changing then it is not possible (for me) to repair pfSense - I'm sometime not geek enought to repair... ;)The solution I am trying to set up is simple:
1 partition "healthy" and functional
1 partition for testing.I save the slice "test" with the following command:
# dump-0Lauf /mnt/slice3/ad4s2a.dump /dev/ad4s2a
But I need to restore it…
In FreeBSD, the command is:
# restore-rf /mnt/slice3/ad4s2a.dump
But in the pfSense shell:
# restore-rf /mnt/slice3/ad4s2a.dump restore: Command not found.
This requires that I install it:
# Pkg_add-r restore Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/restore.tbz: File unavailable (eg, file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.1-release/Latest/restore.tbz' by URL
Obviously it does not. The binary file is in a package which I do not know the name …
That's what I want.
-
Unless you made modifications to the filesystem yourself, you only need the config.xml.
Failing that, the backup package can grab specific directories if you want.
There is really no need to do that deep of a backup.
-
Hi,
@jimp:Unless you made modifications to the filesystem yourself, you only need the config.xml.
Failing that, the backup package can grab specific directories if you want.
There is really no need to do that deep of a backup.
I undestand it's not an usual way to work with pfsense.
In fact I like to make some (very) little "hack". Like install some packages with pkg_add, activate some features…I think it's a good way to "clone" a healthy slice without using some boring & slow tools (like clonezilla...)
For now I'll do that via ssh or nfs, from a system containing the restore command.I'll see later if it's possible to include the restore command in pfsense (I would like to include command in a crontab...)
Again, thanks for your answer and for the great job you make.
-
Hi,
It's solved. I just copied the binary from a freeBSD 8.1 to my pfSense. It works… ;)
It's a nice tool... In 5 minutes I duplicate a Good slice to a second one.
So I can continue testing without any stress, I will always be able to start my firewall.