Displaying 1 result from an estimated 1 matches for "pending_fil".
Did you mean:
pending_files
2007 Aug 14
1
Rsync on Mac OS X
...x
in="/Volumes/Pictures/Photos"
out="user@xxx.xxx.xxx.xxx:/Volumes/Pictures/Photos/"
echo "script called $0 $1 $2"
cd "$in"
for i in *
do
if [ $(lsof | grep -c "$i") = "0" ];
then
echo -n "-- Parsing $i"
if [ ! -s .pending_files ];
then
echo "Pending:" > .pending_files
fi;
if [ $(grep -c "$i" .pending_files) = "0" ];
then
echo "$i" >> .pending_files
echo "sending $i"
rsync -vctzER -e ssh --timeout=600 --progress
"$i" "...