Skip to content

Commit

Permalink
Rename option to --cleanup-projfs and add help
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Oct 23, 2024
1 parent 210d790 commit c6a0e91
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/bin/conserve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,22 @@ enum Command {
long_listing: bool,
},

/// Mount the archive as projection.
/// Mount the archive as a filesystem.
///
/// Files and directories from all previous backups are visible.
///
/// This is currently only supported on Windows.
///
/// On Windows you must first enable the Projected Filesystem feature by running this command
/// in an elevated PowerShell:
///
/// Enable-WindowsOptionalFeature -Online -FeatureName Client-ProjFS -NoRestart
///
/// ProjFS by default retains extracted files in the destination directory. This can make
/// access to the archive faster on subsequent mounts, but will use more disk space.
///
/// If `--cleanup-projfs` is set, then the directory will be deleted when the projection is stopped.
/// Also, if this option is set, the destination directory must not exist.
#[cfg(windows)]
Mount {
/// The archive to mount
Expand All @@ -191,8 +206,8 @@ enum Command {

/// Create the target folder and remove all temporarily created
/// files on exit
#[arg(long, default_value_t = true)]
cleanup: bool,
#[arg(long)]
cleanup_projfs: bool,
},

/// Copy a stored tree to a restore directory.
Expand Down Expand Up @@ -487,7 +502,7 @@ impl Command {
Command::Mount {
archive,
destination,
cleanup,
cleanup_projfs: cleanup,
} => {
use std::io::Read;

Expand Down

0 comments on commit c6a0e91

Please sign in to comment.