backup by ssh, now supports locking