Crates.io | ramup |
lib.rs | ramup |
version | 0.1.4 |
source | src |
created_at | 2020-02-05 14:53:03.41593 |
updated_at | 2020-02-08 02:26:28.946411 |
description | A command supports your work on RAMDisk |
homepage | https://github.com/mkazutaka/ramup |
repository | https://github.com/mkazutaka/ramup |
max_upload_size | |
id | 205176 |
size | 96,292 |
Support your work on RAMDisk
only MacOS
$ cargo install ramup
This command backup your specified directory to RAMDisk. Orignal path is replaced as symbolic link. (BTW, It is not actual backup. if you shutdown your PC, your file go away)
$ ramup backup -p <PATH>
This command restore actual files from symbolic link.
$ ramup restore -p ~/taret/directory
Ramup also support config file. It is useful if you want to change detail option or use application settings existed.
Configuration file's path is ~/.config/ramup/config.toml
You can change through env value RAMUP_CONFIG_PATH
.
Example
# RAMDisk Settings
[ram]
# RAMDisk's name
name = "RAMDiskByRamup"
# RAMDisk's size: 4096 * 2048 (1MB) = 4GB
size = 8388608
# Application Settings
[[application]]
# see: https://github.com/mkazutaka/ramup/tree/master/applications
name = "google-chrome"
# You can also add your origin settings
[[applications]]
name = "my_browser"
paths = [
"~/Library/Application Support/MyBrowser",
"~/Library/Preferences/MyBrowser",
]
MIT