Nástroj iCloud ignore files
Jde o to, aby nebyly na iCloud přenášeny zbytečné nebo nechtěné soubory.
https://github.com/markogresak/cloud-ignore-files
Funguje to tak, že někde máme pracovní adresář, který je synchronizován do icloudu.
V adresáři je veškeré smetí, ale na icloud se přenese jenom to co nás zajímá pro synchronizaci a zálohu.
Nastavení
# Adjust the paths to match your system (do not end the path with /).
# Path to local (working) projects folder
local_path="${HOME}/LocalDocs/Projects"
# Path to cloud projects folder (node_modules, etc. are omitted).
#
# Note: if you're using iCloud on a system before Sierra, the Documents folder
# can be found at "${HOME}/Library/Mobile Documents/com~apple~CloudDocs"
cloud_path="${HOME}/Documents/Projects"
Installing
Note: This currently works only on MacOS because the use of launchctl.
- Install unison CLI tool. The easiest way is brew install unison.
- Clone or download this repository and cd into the folder.
- Check install.sh script and edit paths to match your system setup. Check variables local_path, cloud_path and ignore_files, which can be found at the top of the script.
- Run ./install.sh.