Hi forum, i'm not a bash scripter but i have build one. It's all right: cron works fine, rclone works fine ecc...
Now i have a needs: i must sync two b2 bucket and i don't want to duplicate my rclone-cron.sh. So can I add simply the new rclone sync line to my script?
this is the core:
else
echo -e "rclone starts sync\n"
/usr/bin/rclone sync /media/store1/ b2:bucket &
echo $! > "${PIDFILE}"
chmod 644 "${PIDFILE}"
fi
In this way
else
echo -e "rclone starts sync\n"
/usr/bin/rclone sync /media/store1/ b2:bucket &
/usr/bin/rclone sync /media/store2/ b2:bucket2 &
echo $! > "${PIDFILE}"
chmod 644 "${PIDFILE}"
fi
Thank you in advance!