Read a sample: 1. Think Beyond the Copy
Imagine opening your laptop to finish a document you have worked on for weeks. The file is there, but it will not open. Perhaps you saved an unwanted change yesterday, and the version you need has already been replaced. Perhaps the drive no longer appears at all.
Your first question is unlikely to be, “Which backup technology did I choose?” It will be simpler: “Can I get my work back?”
That question is the starting point for this book. A useful backup is not merely evidence that files were copied at some point. It is a way to recover information you care about, in a condition you can use, when the original is missing or damaged. The distinction sounds small until you need it.
Linux gives you many ways to copy, synchronize, archive, and restore files. You can use a graphical application, a command in a terminal, or a combination of both. Before choosing tools, though, it helps to understand what you are trying to protect, what can go wrong, and what you would need to do afterward. A simple plan that you understand and practice is more useful than an elaborate arrangement you cannot confidently restore from.
This chapter establishes that foundation. You will examine the difference between a spare copy and a recoverable backup, consider common threats to your files, and complete a short assessment of your present situation. You do not need to buy a drive, install software, or change your system yet.
Suppose you copy a folder named Documents to an external drive. You now have another copy of those files. That is a useful step: if the laptop’s internal drive fails, the external copy may still be available.
Whether that copy serves as an effective backup depends on several questions:
- Was the copy completed successfully?
- Does it include the files you actually need?
- How old is it?
- Can you access the external drive and open the files?
- Would the copy survive the same event that affects the laptop?
- If you accidentally changed a file before copying it, is an earlier version available?
An ordinary copy can be part of a backup system, but making one copy once does not answer all these questions. A backup process adds intention: you choose what to protect, where to put the copies, how often to update them, and how to check that recovery works.
Consider a photographer who copies a project to an external drive on Monday. On Tuesday, the photographer deletes several images by mistake. On Friday, they copy the current project folder again, replacing the earlier contents. Depending on the copying method, the deleted images might remain on the external drive—or they might disappear there too. In either case, the photographer should know what the process is designed to do rather than discover it during a recovery.
The same issue arises with changes inside a file. If the only backup copy is replaced by a newer, damaged version, the backup may faithfully preserve the problem. Keeping older versions can provide a way back, although it requires storage space and a deliberate retention choice. We will explore version history in Chapter 6.
For now, keep three ideas separate:
- A source is the file or folder you want to protect.
- A destination is where you store a backup copy.
- A restore is the act of retrieving the copy so you can use it again.
These terms will appear throughout the book. They also provide a useful test: if you cannot identify your source, destination, and likely restore method, you do not yet have a plan you can rely on.
Backup decisions become easier when you picture specific problems instead of a vague possibility of “data loss.” Different problems call for different safeguards. No single copy, location, or schedule addresses every risk equally well.
A misplaced click, a cleanup session, or an overwrite can remove work you meant to keep. Sometimes you notice immediately. At other times, you discover the mistake weeks later, after a backup has already run several times.
A recent copy may help with a recently deleted file. An older version may help when the mistake happened earlier or when the current file exists but contains the wrong information. The length of time you keep older versions matters: a version discarded last week cannot help you recover a change you noticed today.
Linux desktop environments often provide a Trash or similar temporary holding area for deleted files. It can be convenient for quick mistakes, but it is not a substitute for a backup. Items can be removed from it, and it generally lives on storage that may be affected by the same failure as the original files.
Internal drives and external drives can stop working. A computer might fail to start, a drive might disappear from the file manager, or individual files might become unreadable. The failure may be gradual or sudden.
If the only additional copy is another folder on the same physical drive, a drive failure can take both copies with it. The second folder may still be useful for organizing work or experimenting with changes, but it does not provide independent protection against that drive failing.
A separate external drive reduces that shared dependency. It introduces its own dependencies, however: the drive must be accessible, readable, and sufficiently current. If it is connected all the…