#zip #ci #backup #cache #restore #cargo #docker

app cargo-bak

backup and restore $CARGO_HOME cache to cargo_bak.zip

5 releases

0.1.5 May 31, 2023
0.1.4 May 23, 2023
0.1.3 May 23, 2023
0.1.1 May 23, 2023
0.1.0 May 23, 2023

#418 in Cargo plugins

MIT/Apache

10KB
129 lines

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 

Dependencies

~6–14MB
~158K SLoC