aboutsummaryrefslogtreecommitdiff
path: root/files/sync-backups
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-09 23:29:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-09 23:29:12 -0300
commit032b36d3b8d2a08a45a211ca91c56a77d3697200 (patch)
tree7946e9cb5205b479abb28b0b19656791fa593246 /files/sync-backups
parentf6a55fc6a5de53c4036b74c30974c9d440c27469 (diff)
downloadpuppet-backup-032b36d3b8d2a08a45a211ca91c56a77d3697200.tar.gz
puppet-backup-032b36d3b8d2a08a45a211ca91c56a77d3697200.tar.bz2
Restrict image copying just to regular .img files
Diffstat (limited to 'files/sync-backups')
-rw-r--r--files/sync-backups2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/sync-backups b/files/sync-backups
index bd62b33..e580c30 100644
--- a/files/sync-backups
+++ b/files/sync-backups
@@ -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`