]> git.dabkitsch.com - sonogarden_maxproj.git/commitdiff
renaming main patcher
authorequilet <2237372+equilet@users.noreply.github.com>
Wed, 23 Apr 2025 01:53:32 +0000 (18:53 -0700)
committerequilet <2237372+equilet@users.noreply.github.com>
Wed, 23 Apr 2025 01:53:32 +0000 (18:53 -0700)
_sonogarden.maxpat [moved from sonogarden.maxpat with 100% similarity]
archive.zsh

similarity index 100%
rename from sonogarden.maxpat
rename to _sonogarden.maxpat
index 9c4c71fe921c4605a80a5010c276c40da8f84ced..9c17d53e6b06d37cd4d435b58d257f1f31b2aa72 100755 (executable)
@@ -1,25 +1,24 @@
 #!/bin/zsh
 
-# Set the source directory (you can customize this or pass it as an argument)
-SOURCE_DIR="$1"
+backup_dir="/Users/jml/Desktop/sonogarden_backup"
 
-# Check if the source directory is provided
-if [[ -z "$SOURCE_DIR" ]]; then
-  echo "Usage: $0 /path/to/source-directory"
-  exit 1
-fi
+echo "------------------------------"
+echo " "
+echo "back up dir is: " $backup_dir
 
-# Ensure source directory exists
-if [[ ! -d "$SOURCE_DIR" ]]; then
-  echo "Error: Source directory does not exist."
-  exit 1
+if [ -d $backup_dir ]
+then
+  echo 'found a previously existing backup dir; removing contents...'
+  rm -rf $backup_dir/*
+else
+  echo 'creating backup directory'
+  mkdir $backup_dir
 fi
 
-# Generate a timestamped folder name on the Desktop
-DEST_DIR="$HOME/Desktop/Copy_$(basename "$SOURCE_DIR")_$(date +%Y%m%d_%H%M%S)"
-
-# Use rsync to copy, excluding .git and .gitignore
-rsync -av --exclude='.git/' --exclude='.gitignore' "$SOURCE_DIR"/ "$DEST_DIR"
-
-echo "Copied contents to: $DEST_DIR"
+echo " "
+echo "------------syncing backup dir"
+echo " "
+rsync -av --exclude=".gitignore" --exclude ".git" --exclude="*.sh" --exclude="archive.zsh" --exclude="misc" --exclude="notes" --exclude="old" $PWD/ $backup_dir
 
+echo " "
+echo "------------archive complete.  Please see" $backup_dir "for details."