#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

#424 in Cargo plugins

Download history 9/week @ 2024-07-27 37/week @ 2024-08-10 5/week @ 2024-08-17 51/week @ 2024-09-07 6/week @ 2024-09-14 8/week @ 2024-09-21 2/week @ 2024-10-12 47/week @ 2024-10-19 5/week @ 2024-10-26 2/week @ 2024-11-02

56 downloads per month

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–13MB
~158K SLoC