I'm in the process of leaving Linux and moving to FBSD. I'm trying to learn how to backup and restore FBSD, so when I screw stuff up, I can easily restore. I am trying to learn the "dump" and "restore" utilities built into FBSD
I have a fresh install of FBSD, with the default ZFS on Root option during install, on /dev/ada0. I have a secondary hard disk for backup purposes only, which is /dev/ada1. I have initially erased all data on /dev/ada1 and formatted it with UFS. I would like to create an initial backup of the entire ada0 drive to practice restoring it.
I have tried this, which did NOT work:
# /sbin/dump -0uan -h 0 -f- /dev/ada1/ | gzip -2 | dd of=/dev/ada1/base-os-backup-$(date +%D_%T).gz bs=64k
dump: Cannot open /dev/ada1/: Not a directory
dd: /dev/ada1/base-os-backup-02/26/26_14:43:19.gz: Not a directory
1.) How do I, initially, backup an entire disk using "dump"?
2.) From that point forward, how do I create an incremental backup(s)?
3.) Finally, how do I restore either the full or incremental backup(s) using "restore"?
Thank you,
Ed
I have a fresh install of FBSD, with the default ZFS on Root option during install, on /dev/ada0. I have a secondary hard disk for backup purposes only, which is /dev/ada1. I have initially erased all data on /dev/ada1 and formatted it with UFS. I would like to create an initial backup of the entire ada0 drive to practice restoring it.
I have tried this, which did NOT work:
# /sbin/dump -0uan -h 0 -f- /dev/ada1/ | gzip -2 | dd of=/dev/ada1/base-os-backup-$(date +%D_%T).gz bs=64k
dump: Cannot open /dev/ada1/: Not a directory
dd: /dev/ada1/base-os-backup-02/26/26_14:43:19.gz: Not a directory
1.) How do I, initially, backup an entire disk using "dump"?
2.) From that point forward, how do I create an incremental backup(s)?
3.) Finally, how do I restore either the full or incremental backup(s) using "restore"?
Thank you,
Ed