Quick Review: Boxee Box
December 27, 2011 – 12:22 am | 3 Comments

Some of the technical issues with Boxee Box could have been fixed if the dev team was paying more attention to addressing the bugs rather than adding “features” of dubious value. In the final analysis, for the price and ease of use, Boxee Box is the best in its class and price range. You just need to be mindful of its limitations and buy it in hope of future improvements to its usability.

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Backups

Command-line backup methods

Submitted by on November 22, 2005 – 6:01 pmNo Comment
Command-line backup methods

The following is a brief overview of standard Unix comman-line utilities used for data backup on Solaris systems. Most of the information below is also applicable to other unixoid systems.

Common backup/copy methods:

tar | gzip

Basic syntax for creating *.tar.gz archive is:

tar cvf - . | gzip > target.tar.gz

Common tar options include:

-c: Create a tar file
-t: List the contents of a tar file
-x: Extract or restore a tar file
-v: Verbose

Examples:

Create tar file of /etc/mail:

cd /etc
tar cvf mail.tar mail

Extract contents of mail.tar file to /backup/mail directory:

cd /backup
tar xvf mail.tar

pax

Copy files from the current directory to tape:

pax -w -f /dev/rmt/0

Show tape contents:

pax -v -f /dev/rmt/0

dd

dd is commonly used to copy disk slices and entire disks. Here’s an example that will copy disk c0t0d0 to the disk c0t1d0:

dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2 bs=128

If you are looking to make a copy of the boot disk, check out this script.

ufsdump | ufsrestore

These two commands are used in concert to duplicate filesystems. Take a look at this script that uses ufsdump | ufsrestore to duplicate boot disks.

cpio

Copy /var and its contents to /var2:

find /var -depth -print | cpio -pudm /var2

Copy directory and its contents to tape:

ls -R | cpio -oVc > /dev/rmt/0

Copy tape backup back to directory:

cpio -icvD < /dev/rmt/0

Copy directories and files contained in the “list” to tape:

cpio -ov list &gt; /dev/rmt/0

Restore data from tape while preserving timestamps:

cpio -icvum < /dev/rmt/0

Read contents of the tape:

cpio -ict < /dev/rmt/0

volcopy (Solaris-specific)

This example will copy the /export/home filesystem from disk c0t0d0 to disk c0t0d1

volcopy -F ufs /export/home  /dev/rdsk/c0t0d0s3 - /dev/rdsk/c0t0d1s3  -

Popularity: 2% [?]

Related posts:

  1. Solaris boot disk copy
  2. Copying directories using tar and rsync
  3. Create tarball
  4. Copy directory structure and files with cpio
  5. Moving filesystems with ufsdump
  6. Unix Commands Summary
  7. Using rsync to copy files
  8. Working with ISO images on Solaris

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.