From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Back up and restore an EXT filesystem

Back up and restore an EXT filesystem - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Back up and restore an EXT filesystem

When creating a backup image of a file system, we'll first want to run a file system check on it. Let's do this for slash, dev, slash, vgdata, slash, lvdata. Make sure it's not mounted, first. Type in sudo, space, umount, space, slash, dev, slash, vgdata, slash, lvdata, and hit enter. Then run the file system check using e2fsck, type in sudo, space, e2fsck, space, slash, dev, slash, vgdata, slash, lvdata, and hit enter. Once the file system check is clean, we can create a backup. We'll create the backup using the dump command. First, let's install it. Type in clear, then type in sudo, space, yum, space, install, space, dash, y, space, dump, and hit enter. Once it's installed, we can create a backup. Type in clear, and type in sudo, space, dump, space, dash, 0uf, space, slash, home, slash, lvdata.dump. That would be our backup file. Space, slash, dev, slash, vgdata, slash, lvdata. That's the file system…

Contents