Make 22 MCQs with answers and concise explanations about solving mini hypothetical case…
- User
Make 22 MCQs with answers and concise explanations about solving mini hypothetical case studies about using rsync and/or btrfs send.
- Assistant
Make 22 MCQs with answers and concise explanations about solving mini hypothetical case studies about using rsync and/or btrfs send.
Explanation: The rsync command is used for efficient file transfer and synchronization. The -a flag preserves the directory structure, -v displays verbose output providing details on the operation.
Explanation: The --exclude option allows you to specify files or directories that should be excluded from the rsync backup operation. You should provide the path to the file or directory you want to exclude after the equal sign.
Explanation: The -a flag is used to preserve the file permissions, timestamps, and symbolic links, while the -v flag enables verbose output to display the details of the sync operation.
Explanation: When rsync performs a backup, it checks the file size and modification timestamp to determine if a file needs to be transferred from the source to the destination directory, reducing the data transfer volume.
Explanation: The btrfs send command streams the snapshot data, which is then piped to the ssh command that sends it to the remote machine. On the remote machine, btrfs receive is used to receive the snapshot data and store it in the specified destination directory.
Explanation: The btrfs subvolume find-new command is used to find the modifications between two snapshots, which helps identify the specific changes made in a btrfs subvolume.
Explanation: The btrfs subvolume list command lists all the existing subvolumes (including snapshots) present in the specified btrfs filesystem.
Explanation: The btrfs subvolume snapshot command with the -r flag creates a read-only snapshot of the specified source subvolume, assigning it the given snapshot name.
Explanation: By using the --delete flag with rsync, any files or directories that have been removed from the source directory will also be deleted from the destination directory, keeping it in sync with the source.
Explanation: The --bwlimit option allows you to specify the maximum transfer rate for rsync in kilobytes per second (e.g., 1000K). This helps control bandwidth utilization during backup or synchronization.
Explanation: The --dry-run flag performs a trial run of the backup operation, displaying the potential actions that would be taken without actually making any changes to the destination directory.
Explanation: btrfs send and receive operate at the block level, providing more efficient and incremental backups compared to rsync, which transfers files individually.
Explanation: The -z flag enables compression during the rsync operation, reducing the size of the data being transmitted during the backup operation.
Explanation: The btrfs subvolume snapshot command is used to create a snapshot with the specified previous snapshot name, allowing you to restore the filesystem to the state captured by that snapshot.
Explanation: The btrfs subvolume create command is used to create a new subvolume in the specified btrfs filesystem, assigning it the given subvolume name.
Explanation: The -n flag performs a dry run of the rsync command, and the --diff flag shows the differences between file1 and file2 without actually making any changes.
Explanation: When using the --link-dest option in rsync, unchanged files are hard- linked to the corresponding files in the link-dest location, saving disk space by eliminating duplicate data.
Explanation: The -P flag (equivalent to --partial --progress --rsh) in rsync allows for resumption of previously interrupted transfers, preserving partially transferred files and displaying progress information.
Explanation: The btrfs subvolume snapshot command creates a read-only snapshot of the specified source subvolume, assigning it the given destination subvolume name within the same filesystem.
Explanation: Using the --exclude option, you can specify file types to exclude from the rsync backup operation by providing the file extension preceded by an asterisk.
Explanation: When using the -c flag, rsync will compare files using checksums, ensuring accurate synchronization even in cases where file size and modification timestamps may not accurately reflect changes.
Explanation: The --max-size option (or -c option) with btrfs receive limits the maximum size of the received snapshot, ensuring it does not consume more space than specified. The source snapshot is piped using btrfs send with the -p flag for incremental sends.