Sign inSign up free

702. A Backup That Keeps Everything

easy 10 XP ~5 minHands-on lab

Before an upgrade, /var/lib/harbor must be copied to /var/backups/harbor. Last time someone used cp -r, and the restored copy broke the service: every file belonged to root, the timestamps were new, and a symbolic link had turned into a plain file.

Task

Create /var/backups/harbor as a copy of /var/lib/harbor in which every file, directory and link has the same owner, group, mode and modification time as in the original, and symbolic links stay links to the same target.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of Prepare for the LFCS. Next step: A Contractor's Last Day

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.