echo "Haciendo backup en $targz"
files=""
for f in `ls "$datos"`; do
- nombre=`basename "$f" | awk -F\\. '{ print $1 }'`
+ nombre=`basename "$f" | awk -F- '{ print $1 }'`
files="$files $nombre"
done
cd "$origen"
tar -cvzf "$targz" $files
-scp -1 -r "$targz" novedades@"$host":"$dir"
+scp -r "$targz" novedades@"$host":"$dir"