backups-9front


Thu Feb 26 18:33:32 PST 2026, saeed@cloud9p.org (104.167.242.140)
backups for 9front

Backups

In this article we disscus methods of backing up and restoring data in Plan 9

Off-site backups

To take a off-site (archived) backup, you may use disk/mkfs, for example:

; disk/mkfs -avpU -s /root /sys/lib/sysconfig/proto/allproto

Flag a means writing the archive to the output, making it suitable to pass the archive to a compress utility such as bzip2. U and p means setting GID and UID of files as well as their premissions. And finally, v means show every file that is copied, it can be useful as a progress meter.

To reduce archive file, we use bzip2 since it offers a better balance compression ratio than gzip or other formats:

; disk/mkfs -avpU -s /root /sys/lib/sysconfig/proto/allproto | bzip -9 > /tmp/bkup.bz2

taking backups to a local disk is usually faster than sending them to a remote storage (sshfs for example), because of reduced rtt, you may copy the archive later with fcp.

cwfs backups(?)

Consult copyworm as described in fsconfig(8)

To automate backups, one might consider mirroring the WORM to a remote disk (but test, the latency may be unacceptable)



Last modified Thu Feb 26 18:33:32 PST 2026 [ Current version | History | Create a new page ] About the server | Powered by Plan 9