UNLIMITED

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 Format4 min read
Mailserver
Thank you for your hard work. Your magazine has helped me teach myself. You let us know about a price rise – I would pay eight quid. Mind you, I’m a doctor! How about an article focusing on Jupiter Broadcasting with its “value for value” model? I bet
Linux Format2 min read
VeraCrypt
Version: 1.26.14 Web: https://veracrypt.fr/en/ There was a time when keeping your data under a username and password was considered good enough protection. These days, however, the only pragmatic approach to keeping your personal data to yourself is
Linux Format1 min read
Firewall Your Home!
Learn all about the ultimate open source password management system and secure your online accounts! We revisit the language du jour and get you up to speed with coding practical tools that are memory-safe. The new way of sharing your audio streams a

Related Books & Audiobooks