]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Restrict image copying just to regular .img files
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 10 Mar 2013 02:29:12 +0000 (23:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 10 Mar 2013 02:29:12 +0000 (23:29 -0300)
files/sync-backups

index bd62b3328ab23cd627ae7935fa39367c45a596e4..e580c30eebc76b51c7768b82f7700f1603178256 100644 (file)
@@ -42,7 +42,7 @@ function sync_backups_node {
 
     # Copy encrypted images.
     if [ -d "$IMAGES" ]; then
-      for image in `find $IMAGES -type f`; do
+      for image in `find $IMAGES -name '*.img' -type f`; do
         mkdir -p /$MEDIA/$HOSTNAME/images/`dirname $image`
         echo "Copying image to /$MEDIA/$HOSTNAME/images/`dirname $image`"
         cp $image /$MEDIA/$HOSTNAME/images/`dirname $image`