在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:stevegrunwell/asimov开源软件地址:https://github.com/stevegrunwell/asimov开源编程语言:PHP 65.6%开源软件介绍:Asimov
For macOS users, Time Machine is a no-frills, set-it-and-forget-it solution for on-site backups. Plug in an external hard drive (or configure a network storage drive), and your Mac's files are backed up. For the average consumer, Time Machine is an excellent choice, especially considering many Mac owners may only have Time Machine as a backup strategy. For developers, however, Time Machine presents a problem: how do I keep project dependencies from taking up space on my Time Machine drive? Asimov aims to solve that problem, scanning your filesystem for known dependency directories (e.g. InstallationAsimov may be installed in a few different ways: Installation via HomebrewThe easiest way to install Asimov is through Homebrew: $ brew install asimov If you would prefer to use the latest development release, you may append the $ brew install asimov --head Once installed, you may instruct Homebrew to automatically load the scheduled job, ensuring Asimov is being run automatically every day: $ sudo brew services start asimov If you don't need or want the scheduled job, you may run Asimov on-demand: $ asimov Manual installationIf you would prefer to install Asimov manually, you can do so by cloning the repository (or downloading and extracting an archive of the source) anywhere on your Mac: $ git clone https://github.com/stevegrunwell/asimov.git --depth 1 After you've cloned the repository, run the
How it worksAt its essence, Asimov is a simple wrapper around Apple's Asimov finds recognized dependency directories, verifies that the corresponding dependency file exists and, if so, tells Time Machine not to worry about backing up the dependency directory. Don't worry about running it multiple times, either. Asimov is smart enough to see if a directory has already been marked for exclusion. Retrieving excluded filesIf you'd like to see all of the directories and files that have been excluded from Time Machine, you can do so by running the following command (props Brant Bobby on StackOverflow): $ sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'" If a directory has been excluded from backups in error, you can remove the exclusion using $ tmutil removeexclusion /path/to/directory |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论