Linux Format

Answers

fixes non-functional FOSS – fast!

Q Unlocking Thunderbird

My computer is running Ubuntu 20.04.03, and Thunderbird is the latest from Ubuntu’s repositories. When I copy my home folder to an external drive I get this error message:

This is the relevant part of my backup script.

The lock file referred to is generated whenever Thunderbird runs, so deleting the lock file doesn’t solve the problem.

Bryan Mitchell

A Lock files are used by software to indicate that they’re already using a directory. In the case of this file, it tells Thunderbird that an instance is already running, so if you try to run Thunderbird again, it opens the existing instance instead. Lock files tend to be read-only, so copying one with permissions intact won’t work. In this case, Thunderbird creates a symbolic link to a non-existent file, hence the inability to copy it.

You’re not using the best tool for this job in cp. You don’t want to copy, or try to copy, everything. Even with -u it’s far from ideal. A better tool is rsync, which synchronises two directories, copying just what’s needed. It’s also able to copy only the parts of files that have changed, so a small change to a large file doesn’t need a wholesale copy. To back up your entire home directory, you only need:

Note that the trailing slashes on the directory names are important. This has an option to exclude files:

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container
Linux Format2 min read
Distro Watch
Ubuntu 24.04 LTS Noble Numbat is currently scheduled for release on 25th April. At the time of writing, we’re working with a daily build and expect a full review next issue. Nevertheless, we discovered that Canonical has announced this LTS release wi
Linux Format5 min read
Tips For Managing Docker Containers
Everyone knows how containers revolutionised application building and deployment. Using a E disposable stack of containers that make up an app that aren’t using the docker-compose command to manage the stack are missing a trick. It allows the shippin

Related Books & Audiobooks