BSD Newsletter.com
   Front | Info | Lists | Newsfeeds | Study Guide | What is BSD?
Advertisement: The OpenBSD PF Packet Filter Book: PF for NetBSD, FreeBSD, DragonFly and OpenBSD

BSD Links
·New Links
·Advocacy
·Drivers
·Events
·Flavours
·FAQs
·Guides
·Programming
·Security
·Software
·User Groups

This is the BSDA Study Guide Book written via a wiki collaboration. This is a work in progress. You may contribute to or discuss this specific page at http://bsdwiki.reedmedia.net/wiki/Backup_and_restore_a_specified_set_of_files_and_directories_to_local_disk_or_tape.html.

Backup and restore a specified set of files and directories to local disk or tape

Concept

Admins should have experience using common Unix command line backup utilities. In addition, be able to recognize the device names for tape devices on BSD systems.

Introduction

The common command-line backup utilities are tar, cpio, pax, cp, dd, and dump/restore. (Details on using the dd, dump, and restore utilities are covered in the following section Backup and restore a file system.)

TODO: explain differences and similarities between tools.

TODO: basic usage of tar with examples

TODO: basic usage of cpio with examples

TODO: basic usage of pax with examples

TODO: basic usage of using cp for backups with examples

Also the cpdup program is included with DragonFly and is available via NetBSD pkgsrc and FreeBSD ports packages collections (TODO: not in openbsd -- anyone want to package it?)

TODO: if there is room, quickly list other third-party backup tools (but not examples or usage details)?

Common device names for tape drivers include: st, the SCSI and ATAPI tape driver; sa, the SCSI Sequential Access device driver.

Note it is recommended that the raw interface (not block) is used, such as /dev/rst0. (TODO: maybe the recommendation is not applicable for FreeBSD or other??) (TODO: mention no-rewind like nrst0 or nsa0? , eject on close like erst0 or esa0??)

Examples

Practice Exercises

More information

tar(1), cpio(1), pax(1), cp(1), cpdup(1)



Front | Information | Lists | Newsfeeds