Linux Backup File Archiving and Compression

Опубликовано: 13 Май 2026
на канале: JAJUKA Swift
9
1

Imagine this: a single accidental deletion or a sudden hard drive failure, and years of your work, memories, and creativity could vanish in an instant. That’s why backing up your files is not just a good habit—it’s an essential safeguard. In this video, I’ll walk you through a practical and efficient way to create a Linux backup system, ensuring that your valuable data is always protected.

I start by creating a dedicated folder, bin, in my home directory. This serves as the workspace for building the tools to automate your backup process. Within this folder, I craft a custom script, aptly named backup. The script is designed to archive the essential directories—Documents, Music, Pictures, and Videos—compress them into a single file, and name it backup along with the current date for easy organization. This backup is then saved to the desktop, making it easily accessible.

To ensure seamless execution, I take two critical steps: first, I use chmod to grant executable permissions to the script. Then, I modify the PATH variable in my .bashrc file. This clever tweak allows me to run the backup script from anywhere in the terminal without specifying its full path.

By the end of this tutorial, you’ll have a reliable backup system that simplifies file archiving and ensures peace of mind. Don’t leave your data to chance—let’s make backups a priority together!