| Crates.io | rm-backup |
| lib.rs | rm-backup |
| version | 0.1.1 |
| created_at | 2023-12-14 18:59:28.86498+00 |
| updated_at | 2023-12-14 18:59:28.86498+00 |
| description | A minimal command line tool to backup any files you `rm`. |
| homepage | |
| repository | https://github.com/elenakrittik/rm-backup |
| max_upload_size | |
| id | 1069874 |
| size | 52,181 |
rm-backupA minimal command line tool to backup any files you rm.
Use cargo install rm-backup, or binstall if you have it.
Intended usage is to run rm-backup before actual rm with
equal arguments. For example, here is a working example for fish:
function rm;
rm-backup $argv;
if not contains -- "--get" $argv
command rm $argv
end
end
# run `funcsave rm` to persist
rm-backup will backup all specified files (and folders if
--recursive/-r/-R is specified) to ~/.cache/rm-backup/.
After that you can read logs located in the same folder to determine
under which name the folder you're looking for was saved. You can
also use cat $(rm-backup --get) to quickly read latest log.
Huh?