-
Notifications
You must be signed in to change notification settings - Fork 25
Real world: the switches
In addition to these core commands, zpaqfranz features a large number of switches (options) that modify the behavior of these commands to suit your needs.
It’s essential to familiarize yourself with how these commands and switches work. Start with the main commands and gradually explore the additional options available:
- Practice: Try out commands in a safe environment to see how they function.
- Documentation: Refer to the zpaqfranz documentation for detailed descriptions of each command and its switches.
By becoming comfortable with these commands, you'll be better equipped to utilize zpaqfranz effectively for your data management and backup tasks.
So, what is a switch? Essentially, it is a character string that begins with a -
(the minus sign). Switches modify the behavior of commands in zpaqfranz and can sometimes require an additional parameter, which is separated by a space.
-
Basic Switch Without Parameter:
- For instance, you might use a command like
zpaqfranz a d:\thebackup.zpaq c:\dati -terse
. Here,-terse
is a switch that could represent "NON verbose" mode, providing less detailed output during execution.
- For instance, you might use a command like
-
Switch With Parameter:
- An example of a switch with a parameter would be
zpaqfranz a 100 d:\thebackup.zpaq c:\dati -minsize 1M
. In this case,-minsize 1M
indicate that I want ONLY files bigger (-minsize) of 1M
- An example of a switch with a parameter would be
It may seem complex at first, but seeing examples in action will clarify their usage and help you understand how to use switches effectively in your commands.
-
Practice Using Switches:
- Try incorporating different switches in your commands to observe their effects and gain familiarity with their functionalities.
You might be wondering, "OK, I’ve discovered that switches exist. But how do I know what they are and how to use them?" It’s not always straightforward.
-
Global Switches:
- Some switches apply to all commands. For example,
-noeta
disables progress reporting for all operations you perform.
- Some switches apply to all commands. For example,
-
Command-Specific Switches:
- Others are unique to a particular command. For instance, a switch for adding files may differ from one used for extracting files.
-
Context-Dependent Switches:
- Some switches can have different meanings depending on the command or context. This can indeed be confusing!
-
Take it Step by Step:
- It’s important to proceed gradually. Jumping in all at once can be discouraging.
-
Find the Logic:
- There is a method to this apparent madness! Understanding the relationships and functions of switches will make it easier to learn their applications over time.
-
Documentation Review:
- Regularly consult the zpaqfranz documentation to familiarize yourself with the available switches and their functionalities.
-
Experiment:
- Don’t hesitate to experiment with different switches in a safe environment. This hands-on approach will help reinforce your understanding.
Alright, you've convinced me (more or less). So, how do I get started?
- The simplest approach is to dive into the documentation. It is an invaluable resource.
-
Accessing Help:
- For specific commands, you can use zpaqfranz’s help feature. Simply type a command followed by
--help
or-h
. This will display the most significant switches associated with that command.
- For specific commands, you can use zpaqfranz’s help feature. Simply type a command followed by
-
Examples Included:
- The help section often provides examples for nearly every possible scenario, giving you practical insights into how to utilize switches effectively.
- We will explore this in more detail on the next page, where you'll learn how to effectively leverage the help feature and interpret the examples to enhance your command usage.