keeping symlinks as links, since otherwise we cannot use this handy script to backup...
authorChris Koeritz <fred@gruntose.com>
Sat, 14 Mar 2015 17:10:43 +0000 (13:10 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 14 Mar 2015 17:10:43 +0000 (13:10 -0400)
scripts/files/zip_directories.sh

index 5a603b4dd6dcdc147975e2e518f3df3e93c7e037..fce35b43f15b3e8f48b13c8b631d3fd332729b88 100644 (file)
@@ -31,7 +31,7 @@ function flattenizer()
     done
     if [ ! -z "$dirname" -a -d "$dirname" ]; then
       echo "flattening '$dirname'..."
-      zip -rm "${dirname}_$(date_stringer).zip" "$dirname" &>/dev/null
+      zip --symlinks -rm "${dirname}_$(date_stringer).zip" "$dirname" &>/dev/null
     fi
   done
 }