#bak #backup #cargo #c #docker #zip #ci #development-tools #caching #cargo-cache

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

#422 in Database interfaces

Download history 1/week @ 2023-11-11 1/week @ 2023-11-18 32/week @ 2023-11-25 5/week @ 2023-12-02 5/week @ 2023-12-09 227/week @ 2023-12-23 5/week @ 2023-12-30 20/week @ 2024-01-27 20/week @ 2024-02-10 85/week @ 2024-02-17

125 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

~7MB
~114K SLoC