cargo-bak

Crates.iocargo-bak
lib.rscargo-bak
version0.1.5
sourcesrc
created_at2023-05-23 09:16:36.617321
updated_at2023-05-31 13:16:15.270703
descriptionbackup and restore $CARGO_HOME cache to cargo_bak.zip
homepage
repositoryhttps://github.com/luyikk/cargo-bak
max_upload_size
id871833
size28,974
(luyikk)

documentation

README

cargo backup

backup and restore $CARGO_HOME cache to cargo_bak.zip cargo restore for custom docker ci

list of backup directories:

   $CARGO_HOME/registry/index/
   $CARGO_HOME/registry/cache/
   $CARGO_HOME/git/db/

usage:

  • backup
cargo-bak bak
cargo-bak bak -s [filename]
  • backup zip compression level default 0
  • change compression level use -c
cargo-bak bak -c 6
  • restore
  cargo-bak restore ./cargo_bak.zip 
Commit count: 10

cargo fmt