jump to navigation

Backups to DVD under CentOS 3 May 2007

Posted by Mark in Uncategorized.
trackback

Did a full backup of the server last night in anticipation of installing VMware today.

First I had to install the dvd tools.

sudo yum install dvd+rw-tools

Then I did a made a temporary directory and did a full tar to it,

mkdir /tmp/backup.20070502

sudo tar cvzf /tmp/backup.20070502/all.tgz --exclude /tmp --exclude /sys --exclude /proc / > /tmp/backup.20070502/all.list

checked the size to make sure it would fit on a DVD,

du -s -B 1048576 backup.20070502/

and copied it there.

growisofs -dvd-compat -Z /dev/dvd -R -J -joliet-long /tmp/backup.20070502

After it was finished, I mounted the DVD,

mount /media/cdrecorder

and tested that I could read the files.

cat /media/cdrecorder/all.list

tar tvfz /media/cdrecorder/all.tgz
Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: