From ce4cd0d3bdf5baf56b7761c9ee4508cf0e5cb314 Mon Sep 17 00:00:00 2001 From: Ben Swift Date: Fri, 17 Jul 2020 11:37:24 +1000 Subject: [PATCH] cloudstor-sync.sh: add an exclude file don't need to sync caches, .git/ folders, etc. --- scripts/cloudstor-exclude-files.txt | 12 ++++++++++++ scripts/cloudstor-sync.sh | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 scripts/cloudstor-exclude-files.txt diff --git a/scripts/cloudstor-exclude-files.txt b/scripts/cloudstor-exclude-files.txt new file mode 100644 index 0000000..fba0a6a --- /dev/null +++ b/scripts/cloudstor-exclude-files.txt @@ -0,0 +1,12 @@ +# sync the working tree, but don't sync the git repos (since these are all +hosted anyway) +.git/ + +# langugage-specific caches & whatnot +.tox/ +.jekyll-cache/ +node_modules/ +.asset-cache/ + +# because iCloud sync handles this +/Pictures/ diff --git a/scripts/cloudstor-sync.sh b/scripts/cloudstor-sync.sh index c5f4c60..4724872 100755 --- a/scripts/cloudstor-sync.sh +++ b/scripts/cloudstor-sync.sh @@ -1,3 +1,3 @@ #!/bin/bash -rclone sync --progress ~/Documents cloudstor:smithy-rclone/Documents +rclone sync --progress --exclude-from ~/.dotfiles/scripts/cloudstor-exclude-files.txt ~/Documents cloudstor:smithy-rclone/Documents