-
Notifications
You must be signed in to change notification settings - Fork 25
Real world: the basics
Let's delve into the fundamentals of the a
(add) command.
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.
- 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"
- No spaces in path: No need for quotes.
- Spaces in path: Always enclose the path in quotes.
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
- Single file or multiple files: Specify individual files directly.
- Mixed list: Combine files and folders in the same command.
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.
- 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.