iCloud ignore files

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.


  1. Install unison CLI tool. The easiest way is brew install unison.
  2. Clone or download this repository and cd into the folder.
  3. 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.
  4. Run ./install.sh.



Žádné komentáře:

Okomentovat

Server Side Rendering - Next

The Benefits of Server Side Rendering Over Client Side Rendering