Skip to content

Real world: the basics

Franco Corbelli edited this page Sep 26, 2024 · 4 revisions

Understanding the a Command

Let's delve into the fundamentals of the a (add) command.

1) Adding Multiple Folders or Files

All folders or individual files specified after the archive name, separated by spaces, will be added to the .zpaq archive. You can also use wildcard characters like * and ? (typically on Windows) to match multiple files.

Because the list of files or folders is space-separated, you’ll need to use quotation marks (") to enclose paths that contain spaces.

Examples:

  • To archive multiple folders like this:
zpaqfranz a d:\thebackup.zpaq c:\dati c:\user z:\mysql

This command will archive three different folders (c:\dati, c:\user, and z:\mysql).

In this case, there are no spaces in the folder names, so using quotation marks is not necessary.

However, if you want to include a folder with spaces in its path, like "C:\Documents and Settings", you must use quotation marks:

zpaqfranz a d:\thebackup.zpaq "C:\Documents and Settings"

Key Takeaway:

  • No spaces in path: No need for quotes.
  • Spaces in path: Always enclose the path in quotes.

BONUS: On *nix USE THE DOUBLE QUOTE!### 2) Adding Both Folders and Individual Files

Yes, really!

The list of items to be added can include both folders and individual files. You’re not limited to only backing up entire directories—you can also specify single files directly.

zpaqfranz a d:\thebackup.zpaq c:\zpaqfranz\zpaqfranz.cpp

Flexibility

  • Single file or multiple files: Specify individual files directly.
  • Mixed list: Combine files and folders in the same command.

3) Advanced Selection Options

In fact, zpaqfranz offers numerous additional ways to select and deselect files based on various criteria, such as file extension, size, and more. However, we won’t delve into those complexities just yet.

Recommendations:

  • I encourage you to experiment with the tool on your own. You’ll find that, ultimately, it’s not as complicated as it may seem at first glance.
  • Practice: Try out different commands and options to get a feel for how zpaqfranz operates. This hands-on experience will help solidify your understanding.

By taking the time to explore, you'll discover the full range of capabilities that zpaqfranz offers, making it a powerful tool for your backup needs.

Clone this wiki locally