The dump command can be used to dump a backup of a FreeBSD system. You can pipe it to a remote system using SSH.
dump -0uan -f - /usr | gzip -2 | ssh username@server-ip-address dd of=/backup/freebsd/dump-usr-backup.gz
The freebsd-update command can be used to update a FreeBSD system
usage: freebsd-update [options] command … [path]
-b basedir -- Operate on a system mounted at basedir
-d workdir -- Store working files in workdir
-f conffile -- Read configuration options from conffile
-k KEY -- Trust an RSA key with SHA256 hash of KEY
-r release -- Target for upgrade (e.g., 6.2-RELEASE)
-s server -- Server from which to fetch updates
-t address -- Mail output of cron command, if any, to address
fetch -- Fetch updates from server
cron -- Sleep rand(3600) seconds, fetch updates, and send an
email if updates were found
upgrade -- Fetch upgrades to FreeBSD version specified via -r option
install -- Install downloaded updates or upgrades
rollback -- Uninstall most recently installed updates
IDS -- Compare the system against an index of "known good" files.
To get the updates do
Let it run and download the updates, then run
Should say it is installing updates. Then done.
Edit IPF config
Hit “i” to enter insert mode and add the following to allow SSH from the 192.168.0.0/24 ip range. Change range if needed.
pass in quick on bge0 proto tcp from 192.168.0.0/24 to any port = 22 flags S keep state
Save and exit the file by hitting “Esc” then typing “:wq” followed by enter.
And start IPF with new rules
ipf -Fa -f /etc/ipf.rules
Boot up FreeBSD, when you get to the FreeBSD boot menu select “Boot FreeBSD in single user mode”
When you get to the following prompt hit enter.
When prompted Enter full pathname of shell or RETURN for /bin/sh:
You will now be booted in single user mode.
Run the following commands to mount the root drive as read and write.
mount -u /
Now reset the root password with passwd
Your now finished. You can type in “exit” to continue booting, or you can just reboot.